78% easy-development

Code Review | Development Environment

WordPress plugin Development Environment scored78%from 54 tests.

About plugin

  • Plugin page: easy-development
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.2
  • WordPress version: 6.3.1
  • First release: Sep 24, 2017
  • Latest release: Jan 14, 2019
  • Number of updates: 20
  • Update frequency: every 24.2 days
  • Top authors: loonpwn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,381 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.13MB] [CPU: ▼1.55ms] Passed 4 tests

An overview of server-side resources used by Development Environment
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1244.86 ▼1.88
Dashboard /wp-admin3.48 ▲0.1750.72 ▲2.23
Posts /wp-admin/edit.php3.53 ▲0.1746.87 ▼3.07
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.31 ▲1.72
Media Library /wp-admin/upload.php3.34 ▲0.1134.40 ▼2.97

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 149 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Development Environment
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.80 ▲1.431.60 ▼4.2344.70 ▼6.68
Dashboard /wp-admin2,224 ▲424.84 ▼0.04113.07 ▼13.7342.30 ▲1.09
Posts /wp-admin/edit.php2,106 ▲172.06 ▲0.0551.20 ▼2.5941.04 ▲1.26
Add New Post /wp-admin/post-new.php1,555 ▲4123.27 ▲5.82672.53 ▲1.6458.46 ▼25.50
Media Library /wp-admin/upload.php1,403 ▲154.18 ▲0.00116.52 ▲6.2351.37 ▲7.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% 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 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
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/easy-development/vendor/filp/whoops/src/Whoops/Resources/views/header.html.php
    • > /wp-content/plugins/easy-development/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php
    • > /wp-content/plugins/easy-development/vendor/filp/whoops/src/Whoops/Resources/views/env_details.html.php
    • > /wp-content/plugins/easy-development/vendor/filp/whoops/src/Whoops/Resources/views/frames_description.html.php
  • 90× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/easy-development/vendor/symfony/var-dumper/Tests/Test/VarDumperTestTraitTest.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Dumper\\AbstractDumper' not found in wp-content/plugins/easy-development/vendor/symfony/var-dumper/Dumper/CliDumper.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Dumper\\CliDumper' not found in wp-content/plugins/easy-development/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/easy-development/vendor/symfony/var-dumper/Tests/Caster/SplCasterTest.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/easy-development/vendor/symfony/var-dumper/Tests/Caster/CasterTest.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-development/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:14
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/easy-development/vendor/filp/whoops/src/Whoops/Resources/views/header.html.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\EnumStub' not found in wp-content/plugins/easy-development/vendor/symfony/var-dumper/Caster/FrameStub.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Tests\\Fixtures\otLoadableClass' not found in wp-content/plugins/easy-development/vendor/symfony/var-dumper/Tests/Fixtures/NotLoadableClass.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Whoops\\Handler\\Handler' not found in wp-content/plugins/easy-development/vendor/filp/whoops/src/Whoops/Handler/XmlResponseHandler.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: easy, env, development, dev, environment...

easy-development/init.php 92% from 13 tests

Analyzing the main PHP file in "Development Environment" version 1.0.6
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-development.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin13,623 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
PHP1181,9813,21312,325
CSS1867509
JSON700463
JavaScript34332144
Markdown7560142
XML23040

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity13.75
▷ Minimum class complexity1.00
▷ Maximum class complexity142.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces22
Interfaces8
Traits3
Classes82
▷ Abstract classes56.10%
▷ Concrete classes7793.90%
▷ Final classes22.60%
Methods575
▷ Static methods14525.22%
▷ Public methods50287.30%
▷ Protected methods335.74%
▷ Private methods406.96%
Functions86
▷ Named functions4653.49%
▷ Anonymous functions4046.51%
Constants53
▷ Global constants35.66%
▷ Class constants5094.34%
▷ Public constants50100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected