Benchmarks
Plugin footprint Passed 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.29MB] [CPU: ▼301.15ms] Passed 4 tests
Server-side resources used by Indabug
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.41 ▲0.89 | 62.29 ▲6.32 |
Dashboard /wp-admin | 3.68 ▲0.27 | 37.18 ▲4.42 |
Posts /wp-admin/edit.php | 3.97 ▲0.33 | 39.99 ▲3.06 |
Add New Post /wp-admin/post-new.php | 7.22 ▲0.24 | 99.80 ▼1,205.94 |
Media Library /wp-admin/upload.php | 3.62 ▲0.32 | 24.77 ▼6.12 |
Server storage [IO: ▲3.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 187 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Indabug: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,090 ▲336 | 17.46 ▲1.90 | 25.66 ▲19.01 | 7.33 ▲4.49 |
Dashboard /wp-admin | 2,895 ▲34 | 6.01 ▼0.27 | 114.72 ▼19.61 | 160.47 ▲1.78 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▲0.01 | 62.03 ▼2.97 | 138.40 ▼5.12 |
Add New Post /wp-admin/post-new.php | 1,661 ▼50 | 16.92 ▼4.64 | 415.80 ▼22.80 | 155.65 ▼0.34 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.51 ▲0.06 | 146.26 ▼6.20 | 190.20 ▼0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 items
- 74× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/indabug/vendor/symfony/var-dumper/Caster/EnumStub.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\EnumStub' not found in wp-content/plugins/indabug/vendor/symfony/var-dumper/Caster/ArgsStub.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/indabug/vendor/symfony/var-dumper/Tests/Cloner/DataTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' not found in wp-content/plugins/indabug/vendor/symfony/var-dumper/Caster/LinkStub.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/indabug/vendor/symfony/var-dumper/Tests/Caster/SplCasterTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Data' not found in wp-content/plugins/indabug/vendor/maximebf/debugbar/src/DebugBar/DataFormatter/VarDumper/SeekingData.php:15
- > PHP Fatal error
Uncaught Error: Class 'DebugBar\\DataCollector\\DataCollector' not found in wp-content/plugins/indabug/vendor/maximebf/debugbar/src/DebugBar/DataCollector/PDO/PDOCollector.php:13
- > PHP Fatal error
Uncaught Error: Class 'DebugBar\\DataCollector\\DataCollector' not found in wp-content/plugins/indabug/vendor/maximebf/debugbar/src/DebugBar/Bridge/Twig/TwigCollector.php:30
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Dumper\\CliDumper' not found in wp-content/plugins/indabug/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/indabug/vendor/maximebf/debugbar/src/DebugBar/Bridge/MonologCollector.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: performance, debug, development, developer, queries...
indabug/indabug.php 92% from 13 tests
"Indabug" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin20,341 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 141 | 2,523 | 4,726 | 15,069 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 8 | 305 | 573 | 1,428 |
CSS | 8 | 86 | 18 | 866 |
JSON | 1 | 0 | 0 | 297 |
XML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 18 | |
Traits | 3 | |
Classes | 111 | |
▷ Abstract classes | 5 | 4.50% |
▷ Concrete classes | 106 | 95.50% |
▷ Final classes | 2 | 1.89% |
Methods | 912 | |
▷ Static methods | 149 | 16.34% |
▷ Public methods | 825 | 90.46% |
▷ Protected methods | 57 | 6.25% |
▷ Private methods | 30 | 3.29% |
Functions | 86 | |
▷ Named functions | 45 | 52.33% |
▷ Anonymous functions | 41 | 47.67% |
Constants | 52 | |
▷ Global constants | 8 | 15.38% |
▷ Class constants | 44 | 84.62% |
▷ Public constants | 44 | 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 are no PNG files in this plugin