Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.32ms] Passed 4 tests
An overview of server-side resources used by WP Composer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.99 ▲4.16 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.20 ▼3.47 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.45 ▼4.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.93 ▼22.98 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.29 ▼2.62 |
Server storage [IO: ▲4.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 802 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Composer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.73 ▲0.37 | 1.78 ▲0.16 | 44.71 ▼1.29 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▼0.03 | 87.08 ▼10.73 | 37.15 ▼17.23 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.06 | 43.11 ▲4.82 | 36.71 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.36 ▲0.69 | 688.17 ▼19.76 | 53.62 ▼13.85 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.23 ▼0.03 | 100.61 ▼16.38 | 47.31 ▼1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/composer/vendor/composer/composer/tests/Composer/Test/Autoload/Fixtures/template/template_3.php
- > /wp-content/plugins/composer/vendor/composer/composer/tests/Composer/Test/Autoload/Fixtures/template/template_2.php
- 371× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/composer/vendor/composer/composer/tests/Composer/Test/Autoload/Fixtures/composer/autoload_real.php' (include_path='.:/usr/share/php') in wp-content/plugins/composer/vendor/composer/composer/tests/Composer/Test/Autoload/Fixtures/autoload_functions.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Command\\Command' not found in wp-content/plugins/composer/vendor/composer/composer/src/Composer/Command/UpdateCommand.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/composer/vendor/symfony/finder/Symfony/Component/Finder/Tests/Expression/RegexTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\FilterIterator' not found in wp-content/plugins/composer/vendor/symfony/finder/Symfony/Component/Finder/Iterator/FileTypeFilterIterator.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Installer\\InstallerInterface' not found in wp-content/plugins/composer/vendor/composer/composer/tests/Composer/Test/Installer/Fixtures/installer-v4/Installer/Custom2.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Command\\Command' not found in wp-content/plugins/composer/vendor/composer/composer/src/Composer/Command/ConfigCommand.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/composer/vendor/symfony/console/Symfony/Component/Console/Tests/Helper/DialogHelperTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Tests\\BaseTestCase' not found in wp-content/plugins/composer/vendor/justinrainbow/json-schema/tests/JsonSchema/Tests/RequiredPropertyTest.php:5
- > PHP Parse error
syntax error, unexpected end of file, expecting ';' or ',' in wp-content/plugins/composer/vendor/composer/composer/tests/Composer/Test/Autoload/Fixtures/template/template_1.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/composer/vendor/composer/composer/tests/Composer/Test/ConfigTest.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: dependency, assets, wp-cli, php, command line...
composer/composer.php Passed 13 tests
The main PHP file in "WP Composer" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
45 characters long description:
Adds Composer support to WordPress and WP-CLI
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
It is important to fix the following items
- Do not include executable or dangerous files in your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/composer/vendor/composer/composer/src/Composer/IO/hiddeninput.exe
- ☣ wp-content/plugins/composer/vendor/symfony/console/Symfony/Component/Console/Resources/bin/hiddeninput.exe
- .bat - Batch File in Windows
- ☣ wp-content/plugins/composer/vendor/justinrainbow/json-schema/docs/make.bat
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 520 | 9,851 | 15,969 | 44,636 |
Markdown | 45 | 1,218 | 0 | 3,472 |
JSON | 58 | 1 | 0 | 1,637 |
XML | 34 | 38 | 3 | 801 |
DOS Batch | 1 | 23 | 1 | 166 |
make | 1 | 24 | 5 | 124 |
Python | 1 | 65 | 148 | 28 |
YAML | 3 | 8 | 0 | 25 |
reStructuredText | 1 | 20 | 26 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 87 | |
Interfaces | 31 | |
Traits | 3 | |
Classes | 473 | |
▷ Abstract classes | 26 | 5.50% |
▷ Concrete classes | 447 | 94.50% |
▷ Final classes | 2 | 0.45% |
Methods | 3,220 | |
▷ Static methods | 81 | 2.52% |
▷ Public methods | 2,609 | 81.02% |
▷ Protected methods | 407 | 12.64% |
▷ Private methods | 204 | 6.34% |
Functions | 1,519 | |
▷ Named functions | 2 | 0.13% |
▷ Anonymous functions | 1,517 | 99.87% |
Constants | 127 | |
▷ Global constants | 4 | 3.15% |
▷ Class constants | 123 | 96.85% |
▷ Public constants | 123 | 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 were not PNG files found in your plugin