84% symfony-vardumper

Code Review | WordPress Symfony VarDumper

WordPress plugin WordPress Symfony VarDumper scored84%from 54 tests.

About plugin

  • Plugin page: symfony-vardumper
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2015
  • Latest release: Mar 11, 2015
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: CoenJacobs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,007 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.55ms] Passed 4 tests

Analyzing server-side resources used by WordPress Symfony VarDumper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.12 ▲2.13
Dashboard /wp-admin3.35 ▲0.0146.57 ▼11.31
Posts /wp-admin/edit.php3.47 ▲0.1148.04 ▼1.80
Add New Post /wp-admin/post-new.php5.93 ▲0.0499.36 ▲0.80
Media Library /wp-admin/upload.php3.28 ▲0.0434.52 ▲2.32

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

WordPress Symfony VarDumper: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.181.74 ▼0.0645.89 ▲1.69
Dashboard /wp-admin2,206 ▲155.82 ▲0.94103.37 ▼13.8238.62 ▼8.21
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0236.34 ▼3.9232.71 ▼5.14
Add New Post /wp-admin/post-new.php1,542 ▲918.15 ▼5.15623.33 ▼17.8849.81 ▼17.16
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.13100.46 ▼0.9442.41 ▼0.61

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 take a closer look at the following
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/symfony-vardumper/vendor/symfony/var-dumper/Symfony/Component/VarDumper/Tests/HtmlDumperTest.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/symfony-vardumper/vendor/symfony/var-dumper/Symfony/Component/VarDumper/Caster/ConstStub.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' not found in wp-content/plugins/symfony-vardumper/vendor/symfony/var-dumper/Symfony/Component/VarDumper/Dumper/AbstractDumper.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Dumper\\CliDumper' not found in wp-content/plugins/symfony-vardumper/vendor/symfony/var-dumper/Symfony/Component/VarDumper/Dumper/HtmlDumper.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/symfony-vardumper/vendor/symfony/var-dumper/Symfony/Component/VarDumper/Tests/Caster/PdoCasterTest.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface' not found in wp-content/plugins/symfony-vardumper/vendor/symfony/var-dumper/Symfony/Component/VarDumper/Cloner/AbstractCloner.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/symfony-vardumper/vendor/wpupdatephp/wp-update-php/spec/WPUpdatePhpSpec.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Dumper\\AbstractDumper' not found in wp-content/plugins/symfony-vardumper/vendor/symfony/var-dumper/Symfony/Component/VarDumper/Dumper/CliDumper.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\AbstractCloner' not found in wp-content/plugins/symfony-vardumper/vendor/symfony/var-dumper/Symfony/Component/VarDumper/Cloner/VarCloner.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/symfony-vardumper/vendor/symfony/var-dumper/Symfony/Component/VarDumper/Caster/CutStub.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
3 plugin tags: debug, vardumper, symfony

symfony-vardumper/symfony-vardumper.php Passed 13 tests

"WordPress Symfony VarDumper" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
Brings the Symfony VarDumper component to your WordPress installation.

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
No dangerous file extensions were detected3,059 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP385438272,850
JSON400147
Markdown315036
XML12126

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.41
Average class complexity13.48
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces11
Interfaces3
Traits0
Classes28
▷ Abstract classes27.14%
▷ Concrete classes2692.86%
▷ Final classes00.00%
Methods140
▷ Static methods4834.29%
▷ Public methods11783.57%
▷ Protected methods1510.71%
▷ Private methods85.71%
Functions19
▷ Named functions631.58%
▷ Anonymous functions1368.42%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants13100.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