Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼7.18ms] Passed 4 tests
An overview of server-side resources used by Hostry PageSpeed Booster
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 37.35 ▼10.10 |
Dashboard /wp-admin | 3.48 ▲0.18 | 51.40 ▼5.13 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 50.16 ▼1.33 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 86.58 ▼12.17 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.58 ▲2.82 |
PageSpeed Booster /wp-admin/options-general.php?page=pagespeed-booster | 3.43 | 35.51 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 157 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cdn_minifier_hostry |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Hostry PageSpeed Booster
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,715 ▼42 | 13.37 ▼1.21 | 1.75 ▼0.68 | 38.24 ▼1.13 |
Dashboard /wp-admin | 2,211 ▲23 | 4.92 ▼0.99 | 103.31 ▼0.69 | 78.62 ▲37.09 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.00 ▼0.06 | 38.59 ▲1.93 | 32.79 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,671 ▲137 | 22.52 ▼0.82 | 748.97 ▲78.04 | 43.41 ▼10.59 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.24 ▲0.03 | 97.24 ▼9.10 | 73.53 ▲29.71 |
PageSpeed Booster /wp-admin/options-general.php?page=pagespeed-booster | 1,075 | 2.06 | 24.59 | 31.71 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 72× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hostry-pagespeed-booster/includes/vendor/symfony/css-selector/Tests/XPath/TranslatorTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\AbstractHandlerTest' not found in wp-content/plugins/hostry-pagespeed-booster/includes/vendor/symfony/css-selector/Tests/Parser/Handler/WhitespaceHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/hostry-pagespeed-booster/includes/vendor/symfony/css-selector/Node/NegationNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hostry-pagespeed-booster/includes/vendor/symfony/css-selector/Tests/Parser/Shortcut/ElementParserTest.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/hostry-pagespeed-booster/includes/vendor/symfony/css-selector/Parser/Shortcut/EmptyStringParser.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\XPath\\TranslatorInterface' not found in wp-content/plugins/hostry-pagespeed-booster/includes/vendor/symfony/css-selector/XPath/Translator.php:31
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/hostry-pagespeed-booster/includes/vendor/symfony/css-selector/Node/HashNode.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/hostry-pagespeed-booster/includes/vendor/symfony/css-selector/Parser/Handler/WhitespaceHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\ode\\AbstractNodeTest' not found in wp-content/plugins/hostry-pagespeed-booster/includes/vendor/symfony/css-selector/Tests/Node/CombinedSelectorNodeTest.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/hostry-pagespeed-booster/includes/vendor/symfony/css-selector/Parser/Handler/HashHandler.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: google search console, minify, pagespeed, cdn, seo
hostry-pagespeed-booster/cdn-minifier.php 92% from 13 tests
The principal PHP file in "Hostry PageSpeed Booster" v. 1.2.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hostry-pagespeed-booster.php" instead of "cdn-minifier.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please fix the following items
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/hostry-pagespeed-booster/includes/vendor/bin/minifycss.bat
- ☣ wp-content/plugins/hostry-pagespeed-booster/includes/vendor/bin/minifyjs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 2,075 | 5,576 | 8,265 |
JSON | 7 | 0 | 0 | 472 |
HTML | 2 | 0 | 0 | 356 |
Markdown | 7 | 134 | 0 | 251 |
PO File | 1 | 47 | 52 | 204 |
XML | 2 | 3 | 0 | 39 |
YAML | 1 | 0 | 0 | 31 |
Bourne Shell | 2 | 6 | 2 | 12 |
Dockerfile | 1 | 2 | 0 | 11 |
DOS Batch | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 95 | |
▷ Abstract classes | 7 | 7.37% |
▷ Concrete classes | 88 | 92.63% |
▷ Final classes | 1 | 1.14% |
Methods | 625 | |
▷ Static methods | 49 | 7.84% |
▷ Public methods | 528 | 84.48% |
▷ Protected methods | 71 | 11.36% |
▷ Private methods | 26 | 4.16% |
Functions | 32 | |
▷ Named functions | 4 | 12.50% |
▷ Anonymous functions | 28 | 87.50% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-48x48.png | 2.92KB | 1.84KB | ▼ 37.11% |
assets/images/hostry-16x16.png | 1.40KB | 0.81KB | ▼ 41.94% |