Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.87ms] Passed 4 tests
Server-side resources used by Intervention
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 43.11 ▼1.35 |
Dashboard /wp-admin | 3.46 ▲0.16 | 49.03 ▼3.16 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 44.00 ▼6.10 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.77 ▼12.86 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 35.06 ▲2.10 |
Intervention /wp-admin/tools.php?page=intervention | 3.30 | 32.56 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 573 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Intervention
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.14 ▼1.23 | 4.59 ▲2.49 | 43.57 ▼0.07 |
Dashboard /wp-admin | 2,215 ▲27 | 4.90 ▼0.22 | 99.18 ▼10.06 | 42.33 ▲0.83 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▼0.03 | 34.61 ▼5.11 | 30.50 ▼4.52 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.30 ▲0.13 | 677.63 ▼11.24 | 63.07 ▲1.91 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.13 ▼0.10 | 91.78 ▼13.02 | 41.34 ▼2.70 |
Intervention /wp-admin/tools.php?page=intervention | 1,012 | 7.19 | 192.13 | 34.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/intervention/vendor/nikic/php-parser/grammar/rebuildParsers.php
- 265× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Jacoby\\Intervention\\PhpParser\ode\\Expr' not found in wp-content/plugins/intervention/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/CallLike.php:9
- > PHP Fatal error
Uncaught Error: Class 'Jacoby\\Intervention\\PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/intervention/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php:7
- > PHP Fatal error
Uncaught Error: Class 'Jacoby\\Intervention\\PhpParser\ode\\Expr' not found in wp-content/plugins/intervention/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php:7
- > PHP Fatal error
Uncaught Error: Class 'Jacoby\\Intervention\\PhpParser\ode\\Stmt\\ClassLike' not found in wp-content/plugins/intervention/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php:8
- > PHP Fatal error
Uncaught Error: Class 'Jacoby\\Intervention\\PhpParser\\Lexer\\TokenEmulator\\TokenEmulator' not found in wp-content/plugins/intervention/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AttributeEmulator.php:7
- > PHP Fatal error
Uncaught Error: Class 'Jacoby\\Intervention\\PhpParser\\Builder\\Declaration' not found in wp-content/plugins/intervention/vendor/nikic/php-parser/lib/PhpParser/Builder/Interface_.php:11
- > PHP Fatal error
Uncaught Error: Class 'Jacoby\\Intervention\\PhpParser\ode\\Scalar\\MagicConst' not found in wp-content/plugins/intervention/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php:7
- > PHP Fatal error
Uncaught Error: Class 'Jacoby\\Intervention\\PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/intervention/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php:7
- > PHP Fatal error
Uncaught Error: Class 'Jacoby\\Intervention\\PhpParser\ode\\Stmt' not found in wp-content/plugins/intervention/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php:8
- > PHP Fatal error
Uncaught Error: Class 'Jacoby\\Intervention\\Brick\\VarExporter\\Internal\\ObjectExporter' not found in wp-content/plugins/intervention/vendor/brick/varexporter/src/Internal/ObjectExporter/ClosureExporter.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
6 plugin tags: minimal, options, wp-admin, version control, settings...
intervention/intervention.php Passed 13 tests
The principal PHP file in "Intervention" v. 2.0.0 is loaded by WordPress automatically on each request
60 characters long description:
Easily customize wp-admin and configure application options.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin28,812 lines of code in 561 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 545 | 2,688 | 16,321 | 26,095 |
yacc | 3 | 336 | 12 | 2,050 |
JSON | 6 | 0 | 0 | 572 |
Markdown | 3 | 49 | 0 | 91 |
JavaScript | 3 | 0 | 1 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 91 | |
Interfaces | 123 | |
Traits | 3 | |
Classes | 396 | |
▷ Abstract classes | 19 | 4.80% |
▷ Concrete classes | 377 | 95.20% |
▷ Final classes | 18 | 4.77% |
Methods | 2,532 | |
▷ Static methods | 164 | 6.48% |
▷ Public methods | 2,120 | 83.73% |
▷ Protected methods | 354 | 13.98% |
▷ Private methods | 58 | 2.29% |
Functions | 1,400 | |
▷ Named functions | 39 | 2.79% |
▷ Anonymous functions | 1,361 | 97.21% |
Constants | 237 | |
▷ Global constants | 5 | 2.11% |
▷ Class constants | 232 | 97.89% |
▷ Public constants | 232 | 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
No PNG files were detected