Benchmarks
Plugin footprint 40% 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 validation failed for this plugin
- > Deprecated in wp-content/plugins/zipfstats/jbl-zipfstats.php+60
Methods with the same name as their class will not be constructors in a future version of PHP; zipfstats_widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.31ms] Passed 4 tests
Analyzing server-side resources used by Zipfstats
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.69 ▼42.28 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.65 ▼42.23 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.91 ▼40.09 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.03 ▼92.64 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.34 ▼27.39 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_zipfstats_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Zipfstats: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.40 ▲0.22 | 1.71 ▼0.52 | 41.32 ▼6.43 |
Dashboard /wp-admin | 2,209 ▲21 | 4.80 ▼1.07 | 101.68 ▼15.13 | 40.88 ▼1.21 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.04 | 34.15 ▼1.87 | 33.22 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.74 ▼5.34 | 623.66 ▼57.43 | 63.54 ▲3.03 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.11 | 96.86 ▼9.90 | 43.11 ▼1.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/zipfstats/jbl-zipfstats.php+60
Methods with the same name as their class will not be constructors in a future version of PHP; zipfstats_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/zipfstats/jbl-zipfstats.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: word count, writing, zipf widget, linguistics, posts...
zipfstats/jbl-zipfstats.php 92% from 13 tests
The principal PHP file in "Zipfstats" v. 1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zipfstats.php" instead of "jbl-zipfstats.php")
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
No dangerous file extensions were detected1,286 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 188 | 163 | 1,102 |
PHP | 2 | 44 | 40 | 163 |
CSS | 2 | 2 | 1 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin