Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.36MB] [CPU: ▼2.47ms] Passed 4 tests
This is a short check of server-side resources used by WP Network Stats
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 44.94 ▼5.33 |
Dashboard /wp-admin | 3.70 ▲0.39 | 57.95 ▲0.16 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 54.93 ▲4.34 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 107.28 ▼7.73 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 40.81 ▲3.02 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Network Stats
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 13.87 ▼0.39 | 8.40 ▲6.58 | 46.68 ▼6.73 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲0.07 | 124.41 ▲9.95 | 50.73 ▲0.45 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▼0.04 | 40.30 ▼0.66 | 33.84 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.31 ▲2.29 | 803.91 ▲57.85 | 64.02 ▲8.28 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.12 ▲0.02 | 104.89 ▼14.74 | 52.76 ▼2.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-network-stats/public/partials/network-stats-public-display.php
- > /wp-content/plugins/wp-network-stats/admin/partials/network-stats-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Screenshots: These screenshots need descriptions #12, #13, #14 in wp-network-stats/assets to your readme.txt
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
wp-network-stats/wp-network-stats.php 85% from 13 tests
"WP Network Stats" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)
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
No dangerous file extensions were detected14,750 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 22 | 49 | 7,494 |
JavaScript | 12 | 1,265 | 1,077 | 5,120 |
PHP | 17 | 573 | 1,490 | 1,848 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 31 | 29.25% |
▷ Public methods | 93 | 87.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 12.26% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 23 | 100.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 files were detected