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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.41MB] [CPU: ▲0.15ms] Passed 4 tests
A check of server-side resources used by Simple Download Counter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 42.49 ▲3.13 |
Dashboard /wp-admin | 3.77 ▲0.47 | 53.92 ▲6.23 |
Posts /wp-admin/edit.php | 3.82 ▲0.47 | 49.04 ▼2.41 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 85.67 ▼6.33 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 42.71 ▲8.49 |
Add New /wp-admin/post-new.php?post_type=sdc_download | 3.88 | 60.28 |
Tags /wp-admin/edit-tags.php?taxonomy=sdc_download_tag&post_type=sdc_download | 3.75 | 40.02 |
Settings /wp-admin/edit.php?post_type=sdc_download&page=download-counter-settings | 3.65 | 39.66 |
All Downloads /wp-admin/edit.php?post_type=sdc_download | 3.77 | 47.90 |
Categories /wp-admin/edit-tags.php?taxonomy=sdc_download_category&post_type=sdc_download | 3.76 | 40.68 |
Server storage [IO: ▲0.11MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
sdc_download_category_children |
default_term_sdc_download_category |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Download Counter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.18 ▼0.37 | 2.06 ▲0.48 | 43.45 ▲0.87 |
Dashboard /wp-admin | 2,231 ▲51 | 5.56 ▼0.10 | 86.31 ▲2.70 | 37.62 ▲1.08 |
Posts /wp-admin/edit.php | 2,133 ▲36 | 2.41 ▲0.39 | 45.12 ▲8.81 | 33.78 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.37 ▲0.24 | 675.90 ▼38.49 | 40.70 ▼22.61 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.28 ▲0.11 | 105.05 ▲6.04 | 45.26 ▲1.60 |
Add New /wp-admin/post-new.php?post_type=sdc_download | 2,136 | 4.23 | 84.66 | 40.33 |
Tags /wp-admin/edit-tags.php?taxonomy=sdc_download_tag&post_type=sdc_download | 1,279 | 2.12 | 26.34 | 27.21 |
Settings /wp-admin/edit.php?post_type=sdc_download&page=download-counter-settings | 892 | 2.06 | 37.92 | 34.00 |
All Downloads /wp-admin/edit.php?post_type=sdc_download | 1,175 | 2.30 | 35.93 | 29.61 |
Categories /wp-admin/edit-tags.php?taxonomy=sdc_download_category&post_type=sdc_download | 1,406 | 2.12 | 27.49 | 31.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% 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
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- sdc_download_category_children
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- default_term_sdc_download_category
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: file manager, download manager, download counter, download, downloads
simple-download-counter/simple-download-counter.php Passed 13 tests
The main PHP file in "Simple Download Counter" ver. 1.7 adds more information about the plugin and also serves as the entry point for this plugin
91 characters long description:
Counts the number of downloads for any file type. Display download counts using shortcodes.
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
There were no executable files found in this plugin1,492 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 1,069 | 79 | 1,299 |
JavaScript | 2 | 38 | 6 | 113 |
CSS | 1 | 30 | 5 | 80 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 86 | |
▷ Named functions | 86 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/download-bg.png | 1.47KB | 1.63KB | 0.00% |
img/download.png | 0.82KB | 0.90KB | 0.00% |