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.22MB] [CPU: ▼4.67ms] Passed 4 tests
A check of server-side resources used by Pxl Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 38.65 ▲4.46 |
Dashboard /wp-admin | 3.56 ▲0.26 | 47.32 ▼1.68 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 47.14 ▲4.81 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 82.04 ▼22.57 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.64 ▲1.11 |
Server storage [IO: ▲4.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 1,639 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
pxl_custom_core |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Pxl Tools
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼1.30 | 1.69 ▼0.03 | 39.98 ▲2.04 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲1.03 | 102.30 ▼0.84 | 40.12 ▼3.24 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 33.94 ▼7.54 | 32.78 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.42 ▼5.59 | 679.64 ▲36.05 | 62.34 ▲8.45 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.01 | 92.90 ▼18.81 | 43.86 ▼3.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pxl-tools/vendor/duncan3dc/blade/travis/laravel.php
- > /wp-content/plugins/pxl-tools/helpers/Post.php
- > /wp-content/plugins/pxl-tools/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/pxl-tools/helpers/Recaptcha.php
- > /wp-content/plugins/pxl-tools/pxl-tools.php
- > /wp-content/plugins/pxl-tools/helpers/Blade.php
- > /wp-content/plugins/pxl-tools/helpers/Youtube.php
- > /wp-content/plugins/pxl-tools/helpers/Theme.php
- > /wp-content/plugins/pxl-tools/index.php
- > /wp-content/plugins/pxl-tools/helpers/WhatsApp.php
- 255× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pxl-tools/bootstrap.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Doctrine\\Inflector\\WordInflector' not found in wp-content/plugins/pxl-tools/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Transformations.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Writer\\TranslationWriterInterface' not found in wp-content/plugins/pxl-tools/vendor/symfony/translation/Writer/TranslationWriter.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheInterface' not found in wp-content/plugins/pxl-tools/vendor/illuminate/contracts/Cache/Repository.php:8
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/pxl-tools/vendor/illuminate/support/Facades/URL.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/pxl-tools/vendor/nesbot/carbon/src/Carbon/Exceptions/UnitException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/pxl-tools/vendor/illuminate/support/Facades/Date.php:88
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Formatter\\IntlFormatterInterface' not found in wp-content/plugins/pxl-tools/vendor/symfony/translation/Formatter/IntlFormatter.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\BadMethodCallException' not found in wp-content/plugins/pxl-tools/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownMethodException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\View\\Engine' not found in wp-content/plugins/pxl-tools/vendor/illuminate/view/Engines/FileEngine.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: helpers
pxl-tools/pxl-tools.php Passed 13 tests
"Pxl Tools" version 1.1.25's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
36 characters long description:
A Toolbelt for Wordpress development
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
These items require your attention
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/pxl-tools/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,353 | 11,167 | 40,891 | 54,876 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 22 | 0 | 0 | 2,191 |
Markdown | 22 | 572 | 1 | 1,186 |
reStructuredText | 1 | 74 | 78 | 74 |
XML | 1 | 5 | 0 | 12 |
Dockerfile | 1 | 3 | 1 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 298.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.00 |
Code structure | ||
---|---|---|
Namespaces | 90 | |
Interfaces | 132 | |
Traits | 54 | |
Classes | 304 | |
▷ Abstract classes | 15 | 4.93% |
▷ Concrete classes | 289 | 95.07% |
▷ Final classes | 37 | 12.80% |
Methods | 3,733 | |
▷ Static methods | 662 | 17.73% |
▷ Public methods | 3,140 | 84.11% |
▷ Protected methods | 470 | 12.59% |
▷ Private methods | 123 | 3.29% |
Functions | 548 | |
▷ Named functions | 108 | 19.71% |
▷ Anonymous functions | 440 | 80.29% |
Constants | 200 | |
▷ Global constants | 6 | 3.00% |
▷ Class constants | 194 | 97.00% |
▷ Public constants | 190 | 97.94% |
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
No PNG files were detected