94% plugin-download-display

Code Review | Plugin Downloads Display

WordPress plugin Plugin Downloads Display scored 94% from 54 tests.

About plugin

  • Plugin page: plugin-download-d...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 5.8.1
  • First release: Mar 7, 2014
  • Latest release: Mar 23, 2015
  • Number of updates: 6
  • Update frequency: every 63.5 days
  • Top authors: dantaylorseo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 914 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼142.68ms] Passed 4 tests

Analyzing server-side resources used by Plugin Downloads Display
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.08 ▲10.64
Dashboard /wp-admin3.07 ▲0.0237.76 ▼8.95
Posts /wp-admin/edit.php3.12 ▲0.0243.15 ▼4.31
Add New Post /wp-admin/post-new.php5.43 ▲0.00101.50 ▼550.39
Media Library /wp-admin/upload.php3.01 ▲0.0139.92 ▼7.05

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Downloads Display
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.18 ▲0.506.45 ▼4.6754.35 ▲1.00
Dashboard /wp-admin2,967 ▲345.87 ▼0.20135.94 ▼20.22108.99 ▼7.04
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0174.73 ▲4.8694.15 ▼6.82
Add New Post /wp-admin/post-new.php1,498 ▼218.79 ▲0.24382.31 ▲21.33119.26 ▲0.49
Media Library /wp-admin/upload.php1,804 ▼35.00 ▼0.01148.13 ▼18.36121.05 ▼12.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/plugin-download-display/plugin-download-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: plugin development, plugin downloads, developer, shortcode

plugin-download-display/plugin-download-display.php 92% from 13 tests

"Plugin Downloads Display" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1211565

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin