Benchmarks
Plugin footprint 65% 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.82MB] [CPU: ▲0.23ms] Passed 4 tests
This is a short check of server-side resources used by Simple Download Monitor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 43.70 ▲5.59 |
Dashboard /wp-admin | 4.20 ▲0.86 | 49.93 ▼4.03 |
Posts /wp-admin/edit.php | 4.27 ▲0.91 | 55.51 ▲8.48 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.84 | 95.83 ▼9.11 |
Media Library /wp-admin/upload.php | 4.14 ▲0.91 | 42.89 ▲8.69 |
Tags /wp-admin/edit-tags.php?taxonomy=sdm_tags&post_type=sdm_downloads | 4.25 | 37.25 |
Categories /wp-admin/edit-tags.php?taxonomy=sdm_categories&post_type=sdm_downloads | 4.25 | 38.55 |
Stats /wp-admin/edit.php?post_type=sdm_downloads&page=sdm-stats | 4.04 | 40.16 |
Add-ons /wp-admin/edit.php?post_type=sdm_downloads&page=sdm-addons | 4.05 | 37.54 |
Settings /wp-admin/edit.php?post_type=sdm_downloads&page=sdm-settings | 4.04 | 37.80 |
Add New /wp-admin/post-new.php?post_type=sdm_downloads | 4.30 | 54.62 |
Logs /wp-admin/edit.php?post_type=sdm_downloads&page=sdm-logs | 4.04 | 47.56 |
Downloads /wp-admin/edit.php?post_type=sdm_downloads | 4.18 | 42.03 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 76 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_sdm_downloads |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
sdm_plugin_activated_time |
sdm_db_version |
widget_recent-posts |
widget_recent-comments |
sdm_plugin_user_feedback_notice |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Download Monitor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲199 | 13.85 ▼0.43 | 9.21 ▲7.45 | 45.14 ▲5.25 |
Dashboard /wp-admin | 2,253 ▲73 | 5.63 ▼0.02 | 89.83 ▲3.18 | 40.78 ▼0.99 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 2.00 ▲0.03 | 39.16 ▲0.72 | 36.48 ▲0.04 |
Add New Post /wp-admin/post-new.php | 6,412 ▲4,886 | 27.50 ▲3.93 | 849.21 ▲192.82 | 55.45 ▲4.42 |
Media Library /wp-admin/upload.php | 1,454 ▲60 | 4.19 ▼0.02 | 103.39 ▲4.46 | 43.84 ▼0.19 |
Tags /wp-admin/edit-tags.php?taxonomy=sdm_tags&post_type=sdm_downloads | 1,300 | 2.12 | 26.92 | 26.90 |
Categories /wp-admin/edit-tags.php?taxonomy=sdm_categories&post_type=sdm_downloads | 1,334 | 2.11 | 26.65 | 29.96 |
Stats /wp-admin/edit.php?post_type=sdm_downloads&page=sdm-stats | 1,192 | 4.50 | 42.37 | 48.14 |
Add-ons /wp-admin/edit.php?post_type=sdm_downloads&page=sdm-addons | 928 | 2.15 | 22.70 | 31.19 |
Settings /wp-admin/edit.php?post_type=sdm_downloads&page=sdm-settings | 1,252 | 2.01 | 24.54 | 31.21 |
Add New /wp-admin/post-new.php?post_type=sdm_downloads | 2,786 | 7.41 | 156.86 | 69.43 |
Logs /wp-admin/edit.php?post_type=sdm_downloads&page=sdm-logs | 1,199 | 2.02 | 22.71 | 30.09 |
Downloads /wp-admin/edit.php?post_type=sdm_downloads | 1,255 | 1.90 | 30.68 | 29.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_sdm_downloads
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- sdm_plugin_user_feedback_notice
- sdm_plugin_activated_time
- widget_recent-posts
- db_upgraded
- sdm_db_version
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 output text when accessed directly:
- > /wp-content/plugins/simple-download-monitor/includes/admin-side/sdm-admin-export-logs.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-download-monitor/includes/sdm-logs-list-table.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/simple-download-monitor/includes/sdm-logs-list-table.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-download-monitor/includes/sdm-user-login-related.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-download-monitor/sdm-post-type-content-handler.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-download-monitor/includes/admin-side/sdm-admin-edit-download.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-download-monitor/sdm-shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/simple-download-monitor/includes/admin-side/sdm-admin-add-ons-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-download-monitor/includes/sdm-admin-menu-handler.php:15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-download-monitor/includes/sdm-logs-list-table.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-download-monitor/includes/sdm-blocks.php:6
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 26 tag instead of maximum 10
simple-download-monitor/main.php 92% from 13 tests
The main PHP file in "Simple Download Monitor" ver. 3.9.22 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-download-monitor.php" instead of "main.php")
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
Everything looks great! No dangerous files found in this plugin8,931 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 947 | 752 | 4,435 |
PO File | 8 | 1,424 | 1,754 | 3,719 |
CSS | 5 | 34 | 22 | 506 |
JavaScript | 5 | 36 | 18 | 271 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 3 | 3.90% |
▷ Public methods | 75 | 97.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.60% |
Functions | 101 | |
▷ Named functions | 98 | 97.03% |
▷ Anonymous functions | 3 | 2.97% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/addons/sdm-email-on-download-addon-icon.png | 2.89KB | 1.97KB | ▼ 31.88% |
css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
images/addons/sdm-amazon-s3-addon-icon.png | 4.93KB | 4.14KB | ▼ 16.11% |
css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |