94% indabug

Code Review | Indabug

WordPress plugin Indabug scored 94% from 54 tests.

About plugin

  • Plugin page: indabug
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 5.9.2
  • First release: Nov 6, 2019
  • Latest release: Nov 6, 2019
  • Number of updates: 3
  • Update frequency: every 141.0 days
  • Top authors: wpseed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 403 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.41 ▲0.8962.29 ▲6.32
Dashboard /wp-admin3.68 ▲0.2737.18 ▲4.42
Posts /wp-admin/edit.php3.97 ▲0.3339.99 ▲3.06
Add New Post /wp-admin/post-new.php7.22 ▲0.2499.80 ▼1,205.94
Media Library /wp-admin/upload.php3.62 ▲0.3224.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,090 ▲33617.46 ▲1.9025.66 ▲19.017.33 ▲4.49
Dashboard /wp-admin2,895 ▲346.01 ▼0.27114.72 ▼19.61160.47 ▲1.78
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0162.03 ▼2.97138.40 ▼5.12
Add New Post /wp-admin/post-new.php1,661 ▼5016.92 ▼4.64415.80 ▼22.80155.65 ▼0.34
Media Library /wp-admin/upload.php1,695 ▼05.51 ▲0.06146.26 ▼6.20190.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1412,5234,72615,069
SVG1002,671
JavaScript83055731,428
CSS88618866
JSON100297
XML10010

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 code0.39
Average class complexity12.14
▷ Minimum class complexity1.00
▷ Maximum class complexity149.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces27
Interfaces18
Traits3
Classes111
▷ Abstract classes54.50%
▷ Concrete classes10695.50%
▷ Final classes21.89%
Methods912
▷ Static methods14916.34%
▷ Public methods82590.46%
▷ Protected methods576.25%
▷ Private methods303.29%
Functions86
▷ Named functions4552.33%
▷ Anonymous functions4147.67%
Constants52
▷ Global constants815.38%
▷ Class constants4484.62%
▷ Public constants44100.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