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
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.86ms] Passed 4 tests
Analyzing server-side resources used by Files Download Delay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.04 ▼7.68 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.64 ▲0.61 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.86 ▼0.49 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.76 ▼7.89 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 43.83 ▲9.86 |
Files Download Delay /wp-admin/options-general.php?page=files-download-delay | 3.28 | 31.35 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Files Download Delay
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲147 | 13.99 ▼0.39 | 8.62 ▲6.50 | 35.67 ▼8.87 |
Dashboard /wp-admin | 2,210 ▲25 | 4.81 ▼1.04 | 116.31 ▲10.57 | 46.26 ▲2.02 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.00 | 39.00 ▼0.17 | 35.89 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,679 ▲165 | 21.79 ▼1.62 | 661.99 ▲59.97 | 65.23 ▲2.59 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▼0.02 | 94.69 ▼8.13 | 43.56 ▼2.20 |
Files Download Delay /wp-admin/options-general.php?page=files-download-delay | 1,228 | 8.19 | 233.60 | 62.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/files-download-delay/redirect-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/files-download-delay/main.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% 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
These attributes need your attention:
- Contributors: Contributors not specified
files-download-delay/main.php 77% from 13 tests
The principal PHP file in "Files Download Delay" v. 1.0.9 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("files-download-delay.php" instead of "main.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin3,344 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 167 | 338 | 2,606 |
PHP | 11 | 64 | 27 | 550 |
PO File | 1 | 85 | 131 | 174 |
HTML | 1 | 0 | 0 | 7 |
CSS | 3 | 0 | 0 | 3 |
JSON | 2 | 0 | 0 | 2 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 3.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 3 | 14.29% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.33MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 6.42KB | 3.69KB | ▼ 42.46% |
assets/screenshot-3.png | 20.53KB | 11.56KB | ▼ 43.68% |
assets/screenshot-1.png | 279.24KB | 73.24KB | ▼ 73.77% |
img/icon-256x256.png | 20.41KB | 7.90KB | ▼ 61.32% |
img/buy_beer.png | 16.03KB | 6.71KB | ▼ 58.12% |