Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/seraphinite-downloads-stats/Cmn/Gen.php+744
fopen(wp-content/seraph_dlstat/cfg.dat): failed to open stream: No such file or directory
Server metrics [RAM: ▲2.00MB] [CPU: ▲5.05ms] Passed 4 tests
Analyzing server-side resources used by Seraphinite Downloads Statistics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.35 ▲1.89 | 49.74 ▲10.02 |
Dashboard /wp-admin | 5.39 ▲2.09 | 58.90 ▲11.69 |
Posts /wp-admin/edit.php | 5.44 ▲2.09 | 62.66 ▲14.31 |
Add New Post /wp-admin/post-new.php | 7.91 ▲2.03 | 94.61 ▼15.83 |
Media Library /wp-admin/upload.php | 5.25 ▲2.02 | 50.25 ▲16.01 |
Downloads Statistics /wp-admin/options-general.php?page=seraph_dlstat_settings | 5.27 | 43.43 |
Server storage [IO: ▲0.40MB] [DB: ▲0.01MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- You have illegally modified 4 files (0.16KB) outside of "wp-content/plugins/seraphinite-downloads-stats/" and "wp-content/uploads/"
- (new file) wp-content/seraph_dlstat/.htaccess
- (new file) wp-content/seraph_dlstat/cfg.dat
- (new file) wp-content/seraph_dlstat/q.dat.lst
- (new file) wp-content/seraph_dlstat/at.dat
Filesystem: 29 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
seraph_dlstat_State |
widget_recent-comments |
widget_theysaidso_widget |
seraph_dlstat_Sett |
can_compress_scripts |
seraph_dlstat_RmtCfg |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Seraphinite Downloads Statistics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.72 ▲0.44 | 1.84 ▲0.15 | 39.79 ▼1.86 |
Dashboard /wp-admin | 2,214 ▲37 | 5.82 ▲0.18 | 95.37 ▲7.64 | 42.26 ▲2.17 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 2.25 ▲0.24 | 39.08 ▲1.37 | 36.62 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,557 ▲19 | 23.33 ▲5.09 | 659.60 ▲38.25 | 34.16 ▼27.86 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.34 ▲0.16 | 100.21 ▲1.29 | 42.93 ▼1.69 |
Downloads Statistics /wp-admin/options-general.php?page=seraph_dlstat_settings | 1,618 | 2.59 | 50.90 | 63.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- db_upgraded
- widget_theysaidso_widget
- seraph_dlstat_Sett
- seraph_dlstat_RmtCfg
- theysaidso_admin_options
- widget_recent-posts
- seraph_dlstat_State
- widget_recent-comments
- can_compress_scripts
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)
Even though no errors were found, 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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: download monitor, statistic, directory, download, analytics
seraphinite-downloads-stats/seraphinite-downloads-stats.php Passed 13 tests
The primary PHP file in "Seraphinite Downloads Statistics" version 1.3.1 is used by WordPress to initiate all plugin functionality
40 characters long description:
Measure direct downloads from your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin7,789 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 2,157 | 265 | 7,657 |
JavaScript | 6 | 0 | 0 | 129 |
JSON | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 60.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 267.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 493 | |
▷ Static methods | 480 | 97.36% |
▷ Public methods | 437 | 88.64% |
▷ Protected methods | 2 | 0.41% |
▷ Private methods | 54 | 10.95% |
Functions | 94 | |
▷ Named functions | 41 | 43.62% |
▷ Anonymous functions | 53 | 56.38% |
Constants | 101 | |
▷ Global constants | 2 | 1.98% |
▷ Class constants | 99 | 98.02% |
▷ Public constants | 99 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Images/VendorLogo.png | 1.47KB | 1.45KB | ▼ 1.40% |
Images/ProductLogo.png | 2.45KB | 1.88KB | ▼ 23.12% |