Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Compile error in wp-content/plugins/promo/vendor/vierbergenlars/php-semver/src/vierbergenlars/SemVer/internal.php+7
Cannot use vierbergenlars\LibJs\Object as Object because 'Object' is a special class name
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.45ms] Passed 4 tests
Server-side resources used by Promo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.84 ▼1.24 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.48 ▼6.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.19 ▲1.15 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.01 ▼18.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.50 ▼3.81 |
Server storage [IO: ▲3.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 1,048 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Promo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.18 ▼0.81 | 1.65 ▼0.01 | 44.53 ▲3.96 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▲0.03 | 103.38 ▼6.28 | 37.42 ▼8.31 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.05 | 41.77 ▲0.69 | 36.65 ▲1.76 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.10 ▲5.61 | 659.69 ▼8.58 | 70.38 ▲18.32 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.25 ▼0.00 | 98.56 ▼14.95 | 41.00 ▼6.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 516× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Debug\\ErrorHandler' not found in wp-content/plugins/promo/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ErrorHandler.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Database\\ConnectionInterface' not found in wp-content/plugins/promo/vendor/illuminate/database/Connection.php:14
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/promo/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Div.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/promo/vendor/twig/twig/lib/Twig/Node/Module.php:22
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Query\\Processors\\Processor' not found in wp-content/plugins/promo/vendor/illuminate/database/Query/Processors/PostgresProcessor.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Finder\\Expression\\ValueInterface' not found in wp-content/plugins/promo/vendor/symfony/finder/Symfony/Component/Finder/Expression/Expression.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/promo/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Less.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\MessageCatalogueInterface' not found in wp-content/plugins/promo/vendor/symfony/translation/MessageCatalogue.php:21
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/promo/vendor/illuminate/support/Facades/Lang.php:6
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/promo/vendor/illuminate/support/AggregateServiceProvider.php:3
- > 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 83% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Coming Soon), #2 (Coming Soon)
- Plugin Name: Please specify the plugin name on the first line (
=== promo ===
) - Tags: You are using too many tags: 20 tag instead of maximum 10
promo/plugin.php 85% from 13 tests
The principal PHP file in "Promo" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("promo.php" instead of "plugin.php")
- Description: The description should be shorter than 140 characters (currently 339 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin65,544 lines of code in 1,018 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 856 | 14,532 | 43,556 | 53,825 |
reStructuredText | 78 | 2,241 | 1,953 | 3,124 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 22 | 0 | 0 | 1,969 |
Markdown | 24 | 690 | 0 | 1,817 |
C | 2 | 213 | 182 | 1,015 |
XML | 10 | 24 | 0 | 247 |
Twig | 12 | 18 | 0 | 235 |
CSS | 2 | 7 | 1 | 186 |
LESS | 1 | 23 | 0 | 153 |
YAML | 4 | 16 | 1 | 69 |
C/C++ Header | 2 | 19 | 21 | 55 |
m4 | 2 | 13 | 12 | 46 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 121 | |
Interfaces | 140 | |
Traits | 7 | |
Classes | 642 | |
▷ Abstract classes | 45 | 7.01% |
▷ Concrete classes | 597 | 92.99% |
▷ Final classes | 2 | 0.34% |
Methods | 5,597 | |
▷ Static methods | 580 | 10.36% |
▷ Public methods | 4,550 | 81.29% |
▷ Protected methods | 872 | 15.58% |
▷ Private methods | 175 | 3.13% |
Functions | 389 | |
▷ Named functions | 194 | 49.87% |
▷ Anonymous functions | 195 | 50.13% |
Constants | 307 | |
▷ Global constants | 49 | 15.96% |
▷ Class constants | 258 | 84.04% |
▷ Public constants | 258 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin