Benchmarks
Plugin footprint 82% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.71MB] [CPU: ▲44.59ms] Passed 4 tests
Analyzing server-side resources used by WP Performance
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.84 | 48.29 ▲4.57 |
Dashboard /wp-admin | 4.00 ▲0.65 | 120.03 ▲54.68 |
Posts /wp-admin/edit.php | 4.11 ▲0.76 | 104.34 ▲51.77 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.73 | 183.80 ▲78.43 |
Media Library /wp-admin/upload.php | 3.94 ▲0.71 | 105.84 ▲67.34 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- You have illegally modified 4 files (10.36KB) outside of "wp-content/plugins/wp-performance/" and "wp-content/uploads/"
- (new file) .htaccess_wpp_backup
- (new file) wp-content/cache/wpp-cache/index.php
- (new file) wp-content/advanced-cache.php
- (modified) wp-config.php
Filesystem: 237 new files
Database: no new tables, 15 new options
New WordPress options |
---|
theysaidso_admin_options |
wpp_critical_css_list |
wpp_theme_js_list |
wpp_video_post_exclude |
wpp_image_post_exclude |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
wpp_css_post_exclude |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Performance
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲272 | 13.79 ▼0.85 | 8.98 ▲6.92 | 41.77 ▼7.49 |
Dashboard /wp-admin | 2,261 ▲81 | 5.73 ▲0.06 | 91.50 ▼4.65 | 38.48 ▼6.70 |
Posts /wp-admin/edit.php | 2,151 ▲54 | 2.08 ▲0.11 | 39.56 ▲0.78 | 37.41 ▲1.10 |
Add New Post /wp-admin/post-new.php | 6,329 ▲4,803 | 26.18 ▲3.00 | 866.56 ▲169.71 | 36.81 ▼17.43 |
Media Library /wp-admin/upload.php | 1,477 ▲77 | 4.23 ▲0.06 | 95.13 ▼19.89 | 42.58 ▼1.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 68× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'voku\\helper\\DomParserInterface' not found in wp-content/plugins/wp-performance/vendor/voku/simple_html_dom/src/voku/helper/AbstractDomParser.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-performance/vendor/symfony/css-selector/Exception/ParseException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/wp-performance/vendor/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php:27
- > PHP Fatal error
Uncaught Error: Class 'WPP\\Addons\\Cloudflare\\Cloudflare' not found in wp-content/plugins/wp-performance/includes/addons/cloudflare/init.php:12
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/wp-performance/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/wp-performance/vendor/symfony/css-selector/Node/FunctionNode.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\ode\odeInterface' not found in wp-content/plugins/wp-performance/vendor/symfony/css-selector/Node/AbstractNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleHtmlDomNode' not found in wp-content/plugins/wp-performance/vendor/voku/simple_html_dom/src/voku/helper/SimpleHtmlDomNodeBlank.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/wp-performance/vendor/symfony/css-selector/Parser/Handler/StringHandler.php:32
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractDomParser' not found in wp-content/plugins/wp-performance/vendor/voku/simple_html_dom/src/voku/helper/XmlDomParser.php:16
- > 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 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: A description for screenshot #8 is missing in wp-performance/assets to your readme.txt
wp-performance/wp-performance.php 92% from 13 tests
This is the main PHP file of "WP Performance" version 1.1.8.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
It is important to fix the following items
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-performance/vendor/bin/minifycss.bat
- ☣ wp-content/plugins/wp-performance/vendor/bin/minifyjs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 154 | 5,297 | 8,410 | 15,319 |
PO File | 2 | 606 | 799 | 1,393 |
JavaScript | 6 | 328 | 95 | 680 |
CSS | 3 | 183 | 20 | 594 |
JSON | 6 | 0 | 0 | 461 |
Markdown | 8 | 177 | 0 | 290 |
SVG | 2 | 0 | 1 | 56 |
YAML | 2 | 0 | 0 | 35 |
Bourne Shell | 2 | 6 | 2 | 20 |
Dockerfile | 1 | 2 | 0 | 11 |
DOS Batch | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 15 | |
Traits | 1 | |
Classes | 93 | |
▷ Abstract classes | 11 | 11.83% |
▷ Concrete classes | 82 | 88.17% |
▷ Final classes | 2 | 2.44% |
Methods | 1,037 | |
▷ Static methods | 81 | 7.81% |
▷ Public methods | 909 | 87.66% |
▷ Protected methods | 81 | 7.81% |
▷ Private methods | 47 | 4.53% |
Functions | 132 | |
▷ Named functions | 84 | 63.64% |
▷ Anonymous functions | 48 | 36.36% |
Constants | 51 | |
▷ Global constants | 37 | 72.55% |
▷ Class constants | 14 | 27.45% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/addons/varnish/assets/varnish.png | 6.22KB | 4.17KB | ▼ 32.89% |
assets/placeholder.png | 0.90KB | 0.09KB | ▼ 89.71% |