84% edd-sl-renew-all

Code Review | Easy Digital Downloads - Software Licensing - Renew All

WordPress plugin Easy Digital Downloads - Software Licensing - Renew All scored84%from 54 tests.

About plugin

  • Plugin page: edd-sl-renew-all
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: May 5, 2016
  • Number of updates: 7
  • Update frequency: every 28.1 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,597 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.73ms] Passed 4 tests

Server-side resources used by Easy Digital Downloads - Software Licensing - Renew All
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.64 ▼2.61
Dashboard /wp-admin3.33 ▲0.0242.63 ▼5.96
Posts /wp-admin/edit.php3.38 ▲0.0242.78 ▼10.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.14 ▼4.02
Media Library /wp-admin/upload.php3.25 ▲0.0235.42 ▲0.56

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Easy Digital Downloads - Software Licensing - Renew All
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.161.65 ▼0.3243.05 ▼0.79
Dashboard /wp-admin2,209 ▲215.88 ▲1.0497.40 ▼15.2040.72 ▼0.56
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0135.09 ▼4.0230.98 ▼5.61
Add New Post /wp-admin/post-new.php1,533 ▼223.44 ▲0.32649.12 ▼32.7164.68 ▲6.33
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0295.94 ▼1.0441.58 ▼1.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-sl-renew-all/edd-sl-renew-all.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Renew all option) image not found
The official readme.txt is a good inspiration

edd-sl-renew-all/edd-sl-renew-all.php Passed 13 tests

The primary PHP file in "Easy Digital Downloads - Software Licensing - Renew All" version 1.0.2 is used by WordPress to initiate all plugin functionality
50 characters long description:
Adds a "Renew all licenses" button to account page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP134684

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.47
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png163.89KB47.13KB▼ 71.24%