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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.86 ▼1.88 |
Dashboard /wp-admin | 3.48 ▲0.17 | 50.72 ▲2.23 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.87 ▼3.07 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.31 ▲1.72 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.80 ▲1.43 | 1.60 ▼4.23 | 44.70 ▼6.68 |
Dashboard /wp-admin | 2,224 ▲42 | 4.84 ▼0.04 | 113.07 ▼13.73 | 42.30 ▲1.09 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.06 ▲0.05 | 51.20 ▼2.59 | 41.04 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,555 ▲41 | 23.27 ▲5.82 | 672.53 ▲1.64 | 58.46 ▼25.50 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.18 ▲0.00 | 116.52 ▲6.23 | 51.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 118 | 1,981 | 3,213 | 12,325 |
CSS | 1 | 86 | 7 | 509 |
JSON | 7 | 0 | 0 | 463 |
JavaScript | 3 | 43 | 32 | 144 |
Markdown | 7 | 56 | 0 | 142 |
XML | 2 | 3 | 0 | 40 |
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 code | 0.42 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 8 | |
Traits | 3 | |
Classes | 82 | |
▷ Abstract classes | 5 | 6.10% |
▷ Concrete classes | 77 | 93.90% |
▷ Final classes | 2 | 2.60% |
Methods | 575 | |
▷ Static methods | 145 | 25.22% |
▷ Public methods | 502 | 87.30% |
▷ Protected methods | 33 | 5.74% |
▷ Private methods | 40 | 6.96% |
Functions | 86 | |
▷ Named functions | 46 | 53.49% |
▷ Anonymous functions | 40 | 46.51% |
Constants | 53 | |
▷ Global constants | 3 | 5.66% |
▷ Class constants | 50 | 94.34% |
▷ Public constants | 50 | 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
No PNG files were detected