Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.84ms] Passed 4 tests
Analyzing server-side resources used by Simple Stats Total
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.17 | 57.27 ▲8.05 |
Dashboard /wp-admin | 3.72 ▲0.15 | 52.58 ▼4.46 |
Posts /wp-admin/edit.php | 3.77 ▲0.09 | 49.80 ▼1.93 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.09 | 86.94 ▼20.93 |
Media Library /wp-admin/upload.php | 3.58 ▲0.09 | 44.07 ▲3.96 |
Simple Stats Total /wp-admin/tools.php?page=simple-stats-total | 4.88 | 57.97 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 74 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_simple_stats_total |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
sst_plugin_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Stats Total
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.30 ▼0.49 | 2.10 ▲0.30 | 44.54 ▼0.07 |
Dashboard /wp-admin | 2,202 ▲28 | 5.67 ▲0.05 | 98.95 ▼10.67 | 43.51 ▼2.40 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.03 | 35.79 ▼1.88 | 35.01 ▼5.40 |
Add New Post /wp-admin/post-new.php | 1,370 ▼161 | 17.03 ▼6.05 | 580.77 ▼98.32 | 46.90 ▼19.67 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.24 ▲0.04 | 113.29 ▼12.59 | 47.65 ▼0.61 |
Simple Stats Total /wp-admin/tools.php?page=simple-stats-total | 1,005 | 1.92 | 27.41 | 54.41 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
- 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Test\\AbstractTestCase' not found in wp-content/plugins/simple-stats-total/vendor/ua-parser/uap-php/tests/Util/ConverterTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\AbstractParser' not found in wp-content/plugins/simple-stats-total/vendor/ua-parser/uap-php/src/DeviceParser.php:14
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Test\\AbstractTestCase' not found in wp-content/plugins/simple-stats-total/vendor/ua-parser/uap-php/tests/Util/Logfile/AbstractReaderTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Result\\AbstractClient' not found in wp-content/plugins/simple-stats-total/vendor/ua-parser/uap-php/src/Result/Client.php:12
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Exception\\DomainException' not found in wp-content/plugins/simple-stats-total/vendor/ua-parser/uap-php/src/Exception/ReaderException.php:11
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Exception\\DomainException' not found in wp-content/plugins/simple-stats-total/vendor/ua-parser/uap-php/src/Exception/FetcherException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/simple-stats-total/vendor/ua-parser/uap-php/src/Command/LogfileCommand.php:25
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Test\\AbstractTestCase' not found in wp-content/plugins/simple-stats-total/vendor/ua-parser/uap-php/tests/Result/OperatingSystemTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/simple-stats-total/vendor/ua-parser/uap-php/tests/AbstractTestCase.php:13
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Util\\Logfile\\AbstractReader' not found in wp-content/plugins/simple-stats-total/vendor/ua-parser/uap-php/src/Util/Logfile/ApacheCommonLogFormatReader.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Screenshot #1 (screenshot-1.png) image not found
- Requires php: Invalid version format
simple-stats-total/simple-stats-total.php 92% from 13 tests
The main PHP script in "Simple Stats Total" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected9,352 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 458 | 709 | 8,698 |
Markdown | 3 | 101 | 0 | 319 |
JSON | 4 | 0 | 0 | 222 |
CSS | 2 | 0 | 7 | 48 |
YAML | 1 | 6 | 0 | 25 |
XML | 1 | 2 | 0 | 23 |
Bourne Shell | 1 | 2 | 0 | 16 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 8 | 20.00% |
▷ Concrete classes | 32 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 33 | 21.29% |
▷ Public methods | 113 | 72.90% |
▷ Protected methods | 22 | 14.19% |
▷ Private methods | 20 | 12.90% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 38.29KB | 10.74KB | ▼ 71.96% |