84% edd-versions

Code Review | EDD Versions

WordPress plugin EDD Versions scored84%from 54 tests.

About plugin

  • Plugin page: edd-versions
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 14, 2012
  • Latest release: Oct 30, 2012
  • Number of updates: 9
  • Update frequency: every 1.7 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,591 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.14ms] Passed 4 tests

Analyzing server-side resources used by EDD Versions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.25 ▼5.99
Dashboard /wp-admin3.31 ▼0.0348.77 ▼16.65
Posts /wp-admin/edit.php3.37 ▲0.0151.80 ▲3.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.82 ▼9.62
Media Library /wp-admin/upload.php3.24 ▲0.0138.94 ▲4.70

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for EDD Versions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.48 ▼0.081.79 ▲0.1340.74 ▼5.51
Dashboard /wp-admin2,192 ▲155.55 ▼0.0190.75 ▼11.0941.05 ▲0.17
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0337.07 ▼0.0731.24 ▼5.23
Add New Post /wp-admin/post-new.php1,526 ▼1123.13 ▲4.79683.11 ▲16.6070.86 ▲4.99
Media Library /wp-admin/upload.php1,397 ▲34.19 ▼0.03101.60 ▲1.2046.39 ▲1.86

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 add_action() in wp-content/plugins/edd-versions/edd-versions.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Version field added to EDD's "Download Configuration" meta box.), #2 (Version added to the `[download_history]` shortcode's outputted table.)
The official readme.txt is a good inspiration

edd-versions/edd-versions.php Passed 13 tests

The main PHP file in "EDD Versions" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
This plugin adds version numbers to your downloadable software products in Easy Digital Downloads.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1225740

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png43.87KB16.56KB▼ 62.25%
screenshot-2.png25.61KB8.28KB▼ 67.68%