Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.52ms] Passed 4 tests
Analyzing server-side resources used by WP Console - WordPress PHP Console powered by PsySH
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.74 ▼1.73 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.67 ▼2.44 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.38 ▲1.66 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 95.63 ▼1.61 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.02 ▼0.31 |
WP Console /wp-admin/tools.php?page=wp-console | 3.24 | 33.20 |
Server storage [IO: ▲3.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 595 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Console - WordPress PHP Console powered by PsySH
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,244 ▲482 | 21.52 ▲7.38 | 29.02 ▲27.30 | 36.33 ▼10.50 |
Dashboard /wp-admin | 2,369 ▲189 | 8.09 ▲2.45 | 109.77 ▲23.00 | 38.51 ▲2.47 |
Posts /wp-admin/edit.php | 2,269 ▲166 | 7.54 ▲5.60 | 70.96 ▲28.19 | 35.49 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,729 ▲202 | 24.10 ▲1.11 | 511.54 ▼104.90 | 33.96 ▼19.27 |
Media Library /wp-admin/upload.php | 1,664 ▲270 | 8.66 ▲4.44 | 130.68 ▲30.59 | 40.04 ▼4.30 |
WP Console /wp-admin/tools.php?page=wp-console | 932 | 7.07 | 50.19 | 23.04 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-console/vendor/nikic/php-parser/grammar/rebuildParsers.php
- 390× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/wp-console/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/wp-console/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Console\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-console/vendor/symfony/console/Exception/CommandNotFoundException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Psy\\CodeCleaner\\CodeCleanerPass' not found in wp-content/plugins/wp-console/vendor/psy/psysh/src/CodeCleaner/MagicConstantsPass.php:24
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Stmt\\TraitUseAdaptation' not found in wp-content/plugins/wp-console/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\Cast' not found in wp-content/plugins/wp-console/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psy\\Readline\\Readline' not found in wp-content/plugins/wp-console/vendor/psy/psysh/src/Readline/Transient.php:19
- > PHP Fatal error
Uncaught Error: Interface 'PhpParser\\Builder' not found in wp-content/plugins/wp-console/vendor/nikic/php-parser/lib/PhpParser/BuilderAbstract.php:12
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/wp-console/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Console\\Output\\OutputInterface' not found in wp-content/plugins/wp-console/vendor/symfony/console/Output/NullOutput.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were 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
6 plugin tags: psysh, dump, console, browser, repl...
wp-console/wp-console.php Passed 13 tests
The principal PHP file in "WP Console - WordPress PHP Console powered by PsySH" v. 2.4.1 is loaded by WordPress automatically on each request
56 characters long description:
An in-browser PHP console for WordPress powered by PsySH
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
It is important to fix the following items
- Do not distribute dangerous files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/wp-console/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 543 | 9,232 | 17,346 | 41,523 |
yacc | 3 | 284 | 12 | 1,791 |
JSON | 9 | 0 | 0 | 817 |
Markdown | 11 | 131 | 0 | 440 |
C | 1 | 52 | 8 | 223 |
JavaScript | 9 | 4 | 1 | 45 |
m4 | 1 | 11 | 11 | 41 |
C/C++ Header | 1 | 12 | 8 | 40 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 11.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 184.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 75 | |
Interfaces | 37 | |
Traits | 5 | |
Classes | 475 | |
▷ Abstract classes | 34 | 7.16% |
▷ Concrete classes | 441 | 92.84% |
▷ Final classes | 6 | 1.36% |
Methods | 3,679 | |
▷ Static methods | 328 | 8.92% |
▷ Public methods | 1,850 | 50.29% |
▷ Protected methods | 1,523 | 41.40% |
▷ Private methods | 306 | 8.32% |
Functions | 157 | |
▷ Named functions | 57 | 36.31% |
▷ Anonymous functions | 100 | 63.69% |
Constants | 365 | |
▷ Global constants | 10 | 2.74% |
▷ Class constants | 355 | 97.26% |
▷ Public constants | 355 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin