90% dwnldr

Code Review | dwnldr

WordPress plugin dwnldr scored90%from 54 tests.

About plugin

  • Plugin page: dwnldr
  • Plugin version: 1.031
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Jul 13, 2016
  • Latest release: Sep 8, 2016
  • Number of updates: 10
  • Update frequency: every 5.7 days
  • Top authors: findshorty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by dwnldr
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.33 ▼12.98
Dashboard /wp-admin3.32 ▲0.0152.02 ▼4.74
Posts /wp-admin/edit.php3.37 ▲0.0151.65 ▼0.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.81 ▼16.26
Media Library /wp-admin/upload.php3.24 ▲0.0135.12 ▼1.48

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

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

Browser metrics Passed 4 tests

A check of browser resources used by dwnldr
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▲0.311.89 ▲0.1441.77 ▼1.42
Dashboard /wp-admin2,195 ▲275.57 ▲0.0682.79 ▼10.1739.07 ▼8.53
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0335.77 ▼3.1436.23 ▼2.71
Add New Post /wp-admin/post-new.php1,526 ▼023.33 ▲0.33679.66 ▲14.6760.89 ▲8.85
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.02100.91 ▼5.7242.06 ▼4.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === dwnldr === )
You can take inspiration from this readme.txt

dwnldr/dwnldr.php Passed 13 tests

"dwnldr" version 1.031's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
119 characters long description:
Lightweight download manager - link to your attachment page: your URLs are hidden & your downloads are logged. Simples!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11410133

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin