84% post-updated-date-for-divi

Code Review | Post Updated Date for Divi

WordPress plugin Post Updated Date for Divi scored84%from 54 tests.

About plugin

  • Plugin page: post-updated-date...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2023
  • Latest release: Aug 23, 2023
  • Number of updates: 9
  • Update frequency: every 15.7 days
  • Top authors: linknacional (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /218 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.22ms] Passed 4 tests

This is a short check of server-side resources used by Post Updated Date for Divi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.51 ▲3.63
Dashboard /wp-admin3.36 ▲0.0246.98 ▼13.53
Posts /wp-admin/edit.php3.48 ▲0.1243.28 ▼5.73
Add New Post /wp-admin/post-new.php5.94 ▲0.0693.79 ▲10.43
Media Library /wp-admin/upload.php3.29 ▲0.0635.89 ▲6.77

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Post Updated Date for Divi
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▲0.051.78 ▲0.0644.88 ▲3.83
Dashboard /wp-admin2,192 ▲155.64 ▲0.0683.65 ▼2.4638.86 ▼7.99
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0435.76 ▼9.0432.68 ▼5.65
Add New Post /wp-admin/post-new.php1,526 ▼1023.54 ▲0.53663.84 ▼15.5252.15 ▼4.78
Media Library /wp-admin/upload.php1,397 ▼04.19 ▼0.08111.51 ▲10.7650.86 ▲4.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-updated-date-for-divi/includes/class-post-updated-date-for-divi.php:331

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Nothing;)
The official readme.txt is a good inspiration

post-updated-date-for-divi/post-updated-date-for-divi.php Passed 13 tests

The main file in "Post Updated Date for Divi" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
112 characters long description:
Shows the post updated or modified date for divi blog posts. Will show only those posts are modified or updated.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin243 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP976391221
Markdown217022

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity7.20
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes5100.00%
Methods20
▷ Static methods315.00%
▷ Public methods1785.00%
▷ Protected methods00.00%
▷ Private methods315.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin