10% wp-download-counts

Code Review | WP Download Counts

WordPress plugin WP Download Counts scored10%from 54 tests.

About plugin

  • Plugin page: wp-download-counts
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: May 6, 2014
  • Latest release: May 6, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: danmossop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,012 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-download-counts/wp-download-counts.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; dowpdc_pluginCountWidget has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.72ms] Passed 4 tests

Server-side resources used by WP Download Counts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.397.06 ▼32.24
Dashboard /wp-admin2.13 ▼1.255.80 ▼54.76
Posts /wp-admin/edit.php2.13 ▼1.267.02 ▼41.10
Add New Post /wp-admin/post-new.php2.13 ▼3.796.45 ▼94.77
Media Library /wp-admin/upload.php2.13 ▼1.135.77 ▼31.94

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: no files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_dowpdc_plugincountwidget
can_compress_scripts

Browser metrics Passed 4 tests

WP Download Counts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.24 ▼1.491.63 ▼0.2239.30 ▼2.68
Dashboard /wp-admin2,206 ▲184.87 ▼1.03110.63 ▲2.0740.65 ▲0.55
Posts /wp-admin/edit.php2,089 ▲32.03 ▲0.0340.16 ▲4.3837.39 ▲3.13
Add New Post /wp-admin/post-new.php1,542 ▲2818.12 ▲0.63623.19 ▼79.3455.09 ▲0.26
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.0495.94 ▼3.8140.96 ▼2.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wp-download-counts/wp-download-counts.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; dowpdc_pluginCountWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_dowpdc_plugincountwidget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-download-counts/wp-download-counts.php:13

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 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (WP Download Counts plugin) image missing
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

wp-download-counts/wp-download-counts.php Passed 13 tests

"WP Download Counts" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
104 characters long description:
Adds a widget which displays a list of your published WordPress plugins, with links and download counts.

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
Good job! No executable or dangerous file extensions detected88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161188

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin