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.53MB] [CPU: ▲9.13ms] Passed 4 tests
Server-side resources used by MelAbu WP Download Counter Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 46.79 ▲7.34 |
Dashboard /wp-admin | 3.93 ▲0.62 | 53.19 ▲3.71 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 58.00 ▲13.85 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 107.94 ▲15.44 |
Media Library /wp-admin/upload.php | 3.78 ▲0.56 | 50.05 ▲11.62 |
About /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-7 | 3.85 | 44.43 |
Design /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-1 | 3.79 | 44.21 |
Settings /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-5 | 3.81 | 42.38 |
Subscribes /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-3 | 3.75 | 45.54 |
Modal /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-2 | 3.77 | 43.10 |
Downloads /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-4 | 3.75 | 43.54 |
MB DCB /wp-admin/admin.php?page=melibu-plugin-download-admin | 3.84 | 40.95 |
Shortcode /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-6 | 3.80 | 43.50 |
Server storage [IO: ▲8.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 183 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_melibu_dcb |
wp_melibu_dcb_sub |
New WordPress options |
---|
can_compress_scripts |
widget_download-counter-button |
db_upgraded |
melibuPlugin_DCB_db_version |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
melibuPlugin_DCB_version |
Browser metrics Passed 4 tests
A check of browser resources used by MelAbu WP Download Counter Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲285 | 13.18 ▼1.40 | 2.65 ▲0.82 | 47.08 ▲6.26 |
Dashboard /wp-admin | 2,256 ▲65 | 5.93 ▲0.03 | 95.15 ▼5.86 | 81.57 ▲34.69 |
Posts /wp-admin/edit.php | 2,205 ▲116 | 2.01 ▲0.02 | 39.38 ▲3.71 | 38.53 ▲6.42 |
Add New Post /wp-admin/post-new.php | 1,732 ▲218 | 24.63 ▲6.93 | 643.00 ▼45.14 | 34.58 ▼26.61 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.24 ▼0.08 | 95.60 ▼13.69 | 87.38 ▲40.13 |
About /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-7 | 1,920 | 2.23 | 28.88 | 75.83 |
Design /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-1 | 1,459 | 2.08 | 26.93 | 47.20 |
Settings /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-5 | 1,475 | 1.74 | 25.04 | 46.10 |
Subscribes /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-3 | 882 | 2.09 | 26.06 | 31.17 |
Modal /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-2 | 1,065 | 2.35 | 26.05 | 42.75 |
Downloads /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-4 | 880 | 2.22 | 26.93 | 29.85 |
MB DCB /wp-admin/admin.php?page=melibu-plugin-download-admin | 1,355 | 2.22 | 26.55 | 75.94 |
Shortcode /wp-admin/admin.php?page=melibu-plugin-download-admin-control-menu-6 | 1,111 | 2.20 | 26.05 | 40.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_download-counter-button
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/download-counter-button/tpl/tpl.audio.php
- > /wp-content/plugins/download-counter-button/functions/count/download.php
- 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/download-counter-button/tpl/modal.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/download-counter-button/html/dummy/dummy.php:12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/download-counter-button/html/download/font.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/download-counter-button/html/download/modal_option_form.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/download-counter-button/html/download/captcha.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/download-counter-button/html/download/hidecount.php:12
- > PHP Notice
Undefined variable: melibu_plugin_dcb_modal in wp-content/plugins/download-counter-button/tpl/modal.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/download-counter-button/tpl/modal.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/download-counter-button/html/download/label_option_form.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/download-counter-button/html/download/button_icon_color_form.php:12
- > PHP Notice
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 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (A small overview), #2 (Single), #3 (Single and Single), #4 (Duplicate and Single), #5 (Hide Counts for Users), #6 (You can adjust the settings easily so it fits your needs), #7 (Custom Title and Description for your Users), #8 (Check in the Subscription your subscribers), #9 (Check in the Overview your downloads), #10 (All Custom Settings), #11 (Place the Shortcode on any page or post), #12 (Place the Shortcode on MelAbu WP Download Counter Button Widget widget or in any text widget), #13 (To see your Top 5 downloads), #14 (Any document/file Type,this downloader open the right window (here image PNG)), #15 (Or here with MP3 file), #16 (And another file with PDF file type), #17 (Say Thank You! The Thanks Window shows a Modal with your custom text after clicking the download button), #18 (Activate MelAbu Subscription for Download), #19 (Activate MelAbu Subscription with Name for Download), #20 (Activate MelAbu Captcha for Download), #21 (Activate MelAbu Subscription and MelAbu Captcha for Download), #22 (Activate MelAbu Subscription with Name and MelAbu Captcha for Download), #23 (Check fields)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
download-counter-button/download-counter-button.php 92% from 13 tests
"MelAbu WP Download Counter Button" version 1.8.6.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 371 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin16,240 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 25 | 3,595 | 4,363 | 7,356 |
PHP | 43 | 582 | 1,068 | 4,610 |
LESS | 15 | 1,163 | 120 | 2,839 |
JavaScript | 6 | 80 | 122 | 746 |
SVG | 1 | 0 | 0 | 685 |
CSS | 4 | 0 | 3 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 32.62 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 5 | 4.63% |
▷ Public methods | 84 | 77.78% |
▷ Protected methods | 13 | 12.04% |
▷ Private methods | 11 | 10.19% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
48 PNG files occupy 5.52MB with 3.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/forbidden.png | 34.51KB | 13.29KB | ▼ 61.49% |
img/downloadlabel.png | 55.37KB | 18.26KB | ▼ 67.02% |
screenshot-16.png | 137.49KB | 44.02KB | ▼ 67.98% |
img/downloaddatetime.png | 60.72KB | 19.78KB | ▼ 67.42% |
screenshot-6.png | 162.34KB | 48.00KB | ▼ 70.43% |