Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.83MB] [CPU: ▲7.20ms] Passed 4 tests
Analyzing server-side resources used by SlimStat Analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.83 | 49.38 ▲8.28 |
Dashboard /wp-admin | 5.61 ▲2.27 | 83.49 ▲18.29 |
Posts /wp-admin/edit.php | 4.19 ▲0.83 | 53.91 ▲9.57 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.84 | 95.46 ▲3.00 |
Media Library /wp-admin/upload.php | 4.06 ▲0.83 | 42.18 ▲7.94 |
Traffic Sources /wp-admin/admin.php?page=slimview5 | 5.03 | 56.20 |
Upgrade to Pro /wp-admin/admin.php?page=slimpro | 4.93 | 43.46 |
Customize /wp-admin/admin.php?page=slimlayout | 4.92 | 45.50 |
Site Analysis /wp-admin/admin.php?page=slimview4 | 5.04 | 65.94 |
Audience /wp-admin/admin.php?page=slimview3 | 5.04 | 62.12 |
Real-time /wp-admin/admin.php?page=slimview1 | 5.57 | 54.31 |
Overview /wp-admin/admin.php?page=slimview2 | 5.03 | 59.79 |
Settings /wp-admin/admin.php?page=slimconfig | 5.32 | 47.63 |
Server storage [IO: ▲9.44MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 878 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_slim_stats |
wp_slim_events_archive |
wp_slim_stats_archive |
wp_slim_events |
New WordPress options |
---|
slimstat_options |
widget_slimstat_widget |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for SlimStat Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,399 ▲652 | 14.16 ▼0.19 | 84.40 ▲82.80 | 39.87 ▼4.89 |
Dashboard /wp-admin | 3,412 ▲1,238 | 10.70 ▲5.08 | 242.59 ▲153.12 | 86.89 ▲41.50 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.00 ▲0.03 | 42.58 ▼0.01 | 36.33 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 23.22 ▼0.06 | 602.71 ▼100.39 | 52.35 ▲3.91 |
Media Library /wp-admin/upload.php | 1,450 ▲53 | 4.16 ▼0.05 | 98.53 ▼3.62 | 40.62 ▼4.26 |
Traffic Sources /wp-admin/admin.php?page=slimview5 | 1,984 | 7.10 | 140.32 | 328.53 |
Upgrade to Pro /wp-admin/admin.php?page=slimpro | 1,385 | 6.65 | 94.01 | 81.27 |
Customize /wp-admin/admin.php?page=slimlayout | 2,520 | 7.78 | 96.84 | 60.89 |
Site Analysis /wp-admin/admin.php?page=slimview4 | 1,965 | 6.93 | 194.21 | 175.68 |
Audience /wp-admin/admin.php?page=slimview3 | 1,966 | 8.47 | 446.01 | 167.86 |
Real-time /wp-admin/admin.php?page=slimview1 | 2,364 | 7.41 | 99.18 | 154.48 |
Overview /wp-admin/admin.php?page=slimview2 | 1,858 | 7.96 | 316.34 | 119.49 |
Settings /wp-admin/admin.php?page=slimconfig | 1,626 | 6.51 | 88.33 | 93.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/wp-slimstat/uninstall.php+68
unlink(wp-content/uploads/wp-slimstat/maxmind.mmdb): No such file or directory
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_slimstat_widget
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 113× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'BrowscapPHP\\Helper\\QuoterInterface' not found in wp-content/plugins/wp-slimstat/vendor/browscap-php/browscap/browscap-php/src/Helper/Quoter.php:18
- > PHP Fatal error
Uncaught Error: Interface 'League\\Flysystem\\FilesystemException' not found in wp-content/plugins/wp-slimstat/vendor/browscap-php/league/flysystem/src/CorruptedPathDetected.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\MimeTypeDetection\\ExtensionToMimeTypeMap' not found in wp-content/plugins/wp-slimstat/vendor/browscap-php/league/mime-type-detection/src/EmptyExtensionToMimeTypeMap.php:7
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/wp-slimstat/vendor/browscap-php/browscap/browscap-php/src/Command/FetchCommand.php:32
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Scrapbook\\Adapters\\Collections\\Utils\\PrefixReset' not found in wp-content/plugins/wp-slimstat/vendor/browscap-php/matthiasmullie/scrapbook/src/Adapters/Collections/Memcached.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\String\\Inflector\\InflectorInterface' not found in wp-content/plugins/wp-slimstat/vendor/browscap-php/symfony/string/Inflector/EnglishInflector.php:14
- > PHP Fatal error
Uncaught Error: Interface 'League\\Flysystem\\StorageAttributes' not found in wp-content/plugins/wp-slimstat/vendor/browscap-php/league/flysystem/src/FileAttributes.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\MimeTypeDetection\\ExtensionToMimeTypeMap' not found in wp-content/plugins/wp-slimstat/vendor/browscap-php/league/mime-type-detection/src/OverridingExtensionToMimeTypeMap.php:5
- > PHP Fatal error
Uncaught Error: Interface 'League\\Flysystem\\FilesystemException' not found in wp-content/plugins/wp-slimstat/vendor/browscap-php/league/flysystem/src/FilesystemOperationFailed.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\Flysystem\\FilesystemOperationFailed' not found in wp-content/plugins/wp-slimstat/vendor/browscap-php/league/flysystem/src/UnableToReadFile.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 your attention:
- Requires php: Version format is invalid
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-slimstat/wp-slimstat.php Passed 13 tests
"SlimStat Analytics" version 5.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
The leading web analytics plugin for WordPress
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin93,296 lines of code in 514 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 12 | 23,078 | 43,454 | 41,438 |
PHP | 217 | 5,131 | 7,467 | 35,066 |
SVG | 271 | 25 | 2 | 10,721 |
JSON | 3 | 0 | 0 | 2,426 |
Sass | 1 | 399 | 4 | 2,190 |
JavaScript | 6 | 202 | 145 | 1,347 |
Markdown | 2 | 11 | 0 | 83 |
CSS | 2 | 0 | 0 | 25 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 17.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 363.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 111.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 38 | |
Traits | 1 | |
Classes | 150 | |
▷ Abstract classes | 4 | 2.67% |
▷ Concrete classes | 146 | 97.33% |
▷ Final classes | 47 | 32.19% |
Methods | 1,241 | |
▷ Static methods | 273 | 22.00% |
▷ Public methods | 1,048 | 84.45% |
▷ Protected methods | 113 | 9.11% |
▷ Private methods | 80 | 6.45% |
Functions | 111 | |
▷ Named functions | 79 | 71.17% |
▷ Anonymous functions | 32 | 28.83% |
Constants | 149 | |
▷ Global constants | 13 | 8.72% |
▷ Class constants | 136 | 91.28% |
▷ Public constants | 113 | 83.09% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
77 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/browsers/netscape.png | 1.50KB | 1.44KB | ▼ 3.46% |
admin/assets/images/browsers/feedburner.png | 0.70KB | 0.80KB | 0.00% |
admin/assets/images/browsers/ie.png | 1.59KB | 1.49KB | ▼ 5.85% |
admin/assets/images/browsers/chromium.png | 1.54KB | 1.47KB | ▼ 4.50% |
admin/assets/images/browsers/facebookexternalhit.png | 0.28KB | 0.29KB | 0.00% |