Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.09MB] [CPU: ▼53.51ms] Passed 4 tests
Server-side resources used by GeneralStats
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▼0.56 | 7.71 ▼36.01 |
Dashboard /wp-admin | 2.92 ▼0.38 | 9.76 ▼41.65 |
Posts /wp-admin/edit.php | 2.92 ▼0.44 | 8.04 ▼44.99 |
Add New Post /wp-admin/post-new.php | 2.92 ▼2.97 | 7.94 ▼91.40 |
Media Library /wp-admin/upload.php | 2.92 ▼0.31 | 8.20 ▼30.74 |
GeneralStats /wp-admin/options-general.php?page=generalstats | 2.92 | 7.96 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_generalstats |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
generalstats |
Browser metrics Passed 4 tests
Checking browser requirements for GeneralStats
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲111 | 13.48 ▼0.95 | 9.01 ▲6.49 | 42.60 ▲0.20 |
Dashboard /wp-admin | 2,211 ▲34 | 5.58 ▲0.06 | 98.23 ▲7.41 | 43.37 ▲1.77 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.99 ▲0.03 | 38.76 ▲1.48 | 34.00 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.03 ▲0.02 | 644.17 ▼46.52 | 56.51 ▲4.61 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.21 ▲0.11 | 100.27 ▼6.03 | 43.70 ▼4.50 |
GeneralStats /wp-admin/options-general.php?page=generalstats | 2,776 | 2.27 | 51.23 | 45.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/generalstats/generalstats.php+434
Use of undefined constant EMPTY_TRASH_DAYS - assumed 'EMPTY_TRASH_DAYS' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=generalstats
- > Warning in wp-content/plugins/generalstats/generalstats.php+434
Use of undefined constant EMPTY_TRASH_DAYS - assumed 'EMPTY_TRASH_DAYS' (this will throw an Error in a future version of PHP)
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
- 54× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to get property 'term_taxonomy' of non-object in wp-content/plugins/generalstats/generalstats.php on line 540
- > PHP Notice
Trying to get property 'posts' of non-object in wp-content/plugins/generalstats/generalstats.php on line 571
- > PHP Notice
Trying to get property 'comments' of non-object in wp-content/plugins/generalstats/generalstats.php on line 549
- > PHP Notice
Trying to get property 'posts' of non-object in wp-content/plugins/generalstats/generalstats.php on line 572
- > PHP Notice
Trying to get property 'posts' of non-object in wp-content/plugins/generalstats/generalstats.php on line 544
- > PHP Notice
Trying to get property 'terms' of non-object in wp-content/plugins/generalstats/generalstats.php on line 563
- > PHP Notice
Trying to get property 'terms' of non-object in wp-content/plugins/generalstats/generalstats.php on line 563
- > PHP Notice
Trying to get property 'terms' of non-object in wp-content/plugins/generalstats/generalstats.php on line 540
- > PHP Notice
Trying to get property 'links' of non-object in wp-content/plugins/generalstats/generalstats.php on line 559
- > PHP Notice
Trying to get property 'terms' of non-object in wp-content/plugins/generalstats/generalstats.php on line 540
- > PHP Notice
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (22 tag instead of maximum 10)
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screenshot shows the Settings/GeneralStats Tab with the Selection GUI Section in the Admin Menu.), #2 (This picture presents the Preview Section of the GeneralStats Tab in the Admin Menu.)
generalstats/generalstats.php 92% from 13 tests
"GeneralStats" version 3.34's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
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
Everything looks great! No dangerous files found in this plugin2,189 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 1,182 | 1,383 | 1,793 |
JavaScript | 5 | 168 | 206 | 297 |
CSS | 1 | 24 | 0 | 99 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 130.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 256.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 141 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 86 | 60.99% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 55 | 39.01% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 20.18KB | 10.26KB | ▼ 49.15% |
screenshot-2.png | 14.31KB | 6.49KB | ▼ 54.65% |