Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.05MB] [CPU: ▼44.85ms] Passed 4 tests
Server-side resources used by WP Show Stats
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▼0.54 | 16.38 ▼25.63 |
Dashboard /wp-admin | 2.96 ▼0.34 | 18.38 ▼40.30 |
Posts /wp-admin/edit.php | 2.96 ▼0.40 | 19.19 ▼34.81 |
Add New Post /wp-admin/post-new.php | 2.96 ▼2.93 | 21.14 ▼78.64 |
Media Library /wp-admin/upload.php | 2.96 ▼0.27 | 18.31 ▼20.05 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Show Stats: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 14.35 ▲0.09 | 1.79 ▼0.08 | 38.63 ▼5.92 |
Dashboard /wp-admin | 2,251 ▲71 | 5.77 ▲0.15 | 89.82 ▼1.06 | 42.11 ▼6.65 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 2.26 ▲0.25 | 39.77 ▼0.98 | 37.98 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 22.90 ▼0.18 | 657.61 ▼20.59 | 52.48 ▲3.46 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.36 ▲0.19 | 105.03 ▼0.69 | 42.47 ▼3.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-show-stats/wp-show-stats.php+57
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-show-stats/includes/wp-show-stats-sidebar.php
- > /wp-content/plugins/wp-show-stats/wp-show-stats.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: wordpress statistics plugin, analysis plugin, wordpress statistics, wordpress stats, analysis...
wp-show-stats/wp-show-stats.php Passed 13 tests
The principal PHP file in "WP Show Stats" v. 1.4.2 is loaded by WordPress automatically on each request
117 characters long description:
Very useful plugin to see stats related to Pages, Posts, Comments, Categories, Users, Custom post types at one place.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,447 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 216 | 120 | 1,425 |
CSS | 2 | 2 | 6 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/ui-icons_454545_256x240.png | 6.91KB | 4.18KB | ▼ 39.44% |
images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |