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
Install script ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼15.66ms] Passed 4 tests
Server-side resources used by Plugin Stats View
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.34 ▲0.58 |
Dashboard /wp-admin | 3.45 ▲0.10 | 46.73 ▼16.37 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.98 ▲0.29 |
Add New Post /wp-admin/post-new.php | 4.97 ▼0.92 | 49.89 ▼47.14 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 35.86 ▲4.87 |
Plugin Stats View /wp-admin/options-general.php?page=PluginStatsView | 3.34 | 35.68 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Plugin Stats View: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲43 | 14.35 ▲0.07 | 1.61 ▼0.18 | 44.87 ▼1.97 |
Dashboard /wp-admin | 2,199 ▲19 | 5.58 ▼0.10 | 89.33 ▼7.83 | 38.94 ▼3.64 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▼0.08 | 39.22 ▼2.04 | 35.39 ▼1.50 |
Add New Post /wp-admin/post-new.php | 6,210 ▲4,684 | 21.37 ▼1.70 | 877.07 ▲202.41 | 79.69 ▲17.97 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.03 | 98.45 ▼4.26 | 41.58 ▼1.28 |
Plugin Stats View /wp-admin/options-general.php?page=PluginStatsView | 959 | 1.99 | 25.19 | 33.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/plugin-stats-view/lib/class-pluginstatsview.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugin-stats-view/lib/class-pluginstatsviewadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugin-stats-view/lib/class-pluginstatsviewadmin.php:37
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: plugin, plugin stats, stats
plugin-stats-view/pluginstatsview.php 92% from 13 tests
The main PHP script in "Plugin Stats View" version 2.22 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("plugin-stats-view.php" instead of "pluginstatsview.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
Success! There were no dangerous files found in this plugin799 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 92 | 192 | 653 |
JavaScript | 4 | 10 | 0 | 119 |
JSON | 1 | 0 | 0 | 21 |
CSS | 1 | 0 | 3 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 40.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 5.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 27.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin