Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-includes/plugin.php+1001
Undefined offset: 0
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.96ms] Passed 4 tests
Server-side resources used by Marvinerp
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.99 ▼3.25 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.60 ▼2.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.12 ▼0.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.28 ▼17.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.64 ▲3.72 |
Server storage [IO: ▲43.28MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- The filesystem usage should be lower than 25MB (currently using 43.28MB)
Filesystem: 1,092 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Marvinerp: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.16 | 1.84 ▼0.02 | 43.94 ▼2.37 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.01 | 87.39 ▼3.59 | 38.64 ▼1.75 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.02 | 34.75 ▼7.45 | 34.51 ▼5.03 |
Add New Post /wp-admin/post-new.php | 1,550 ▼4 | 23.37 ▲5.00 | 674.03 ▲41.35 | 52.76 ▲3.53 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.25 ▲0.06 | 98.89 ▼11.97 | 41.64 ▼3.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/marvinerp-api/src/Views/Messages/DocumentError.php
- 590× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Phpro\\SoapClient\\Soap\\Engine\\EngineInterface' not found in wp-content/plugins/marvinerp-api/vendor/phpro/soap-client/src/Phpro/SoapClient/Soap/Engine/Engine.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Phpro\\SoapClient\\Type\\ResultInterface' not found in wp-content/plugins/marvinerp-api/src/Type/GetPndForResponse.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Laminas\\Code\\Reflection\\DocBlock\\Tag\\TagInterface' not found in wp-content/plugins/marvinerp-api/vendor/laminas/laminas-code/src/Reflection/DocBlock/Tag/GenericTag.php:13
- > PHP Fatal error
Uncaught Error: Class 'Laminas\\Code\\Generator\\DocBlock\\Tag\\GenericTag' not found in wp-content/plugins/marvinerp-api/vendor/laminas/laminas-code/src/Generator/DocBlock/Tag.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Console\\Formatter\\WrappableOutputFormatterInterface' not found in wp-content/plugins/marvinerp-api/vendor/symfony/console/Formatter/OutputFormatter.php:22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\String\\AbstractUnicodeString' not found in wp-content/plugins/marvinerp-api/vendor/symfony/string/UnicodeString.php:33
- > PHP Fatal error
Uncaught Error: Interface 'Phpro\\SoapClient\\Soap\\TypeConverter\\TypeConverterInterface' not found in wp-content/plugins/marvinerp-api/vendor/phpro/soap-client/src/Phpro/SoapClient/Soap/TypeConverter/DateTimeTypeConverter.php:17
- > PHP Fatal error
Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/marvinerp-api/vendor/phpro/soap-client/spec/Phpro/SoapClient/CodeGenerator/Util/NormalizerSpec.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/marvinerp-api/vendor/phpro/soap-client/test/PhproTest/SoapClient/Integration/Soap/Driver/ExtSoap/ExtSoapOptionsTest.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Console\\Input\\InputInterface' not found in wp-content/plugins/marvinerp-api/vendor/symfony/console/Input/Input.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== Marvinerp===
)
marvinerp-api/marvinerp.php 85% from 13 tests
The principal PHP file in "Marvinerp" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "5.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("marvinerp-api.php" instead of "marvinerp.php")
Code Analysis 5% from 3 tests
File types 0% from 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
Please make sure to remedy the following
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/marvinerp-api/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .bat - Batch File in Windows
- ☣ wp-content/plugins/marvinerp-api/vendor/bin/phpstan.bat
- ☣ wp-content/plugins/marvinerp-api/vendor/bin/phpstan.phar.bat
- ☣ wp-content/plugins/marvinerp-api/vendor/bin/soap-client.bat
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/marvinerp-api/vendor/phpro/soap-client/test/fixtures/certificates/wsse-server-x509.crt
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 812 | 13,348 | 112,125 | 87,263 |
XML | 83 | 292 | 3 | 3,533 |
Markdown | 65 | 1,493 | 0 | 3,306 |
JSON | 27 | 1 | 0 | 2,719 |
CSS | 5 | 25 | 6 | 385 |
Bourne Shell | 11 | 54 | 66 | 214 |
YAML | 9 | 23 | 6 | 187 |
HTML | 1 | 9 | 0 | 85 |
SVG | 3 | 0 | 0 | 18 |
DOS Batch | 3 | 0 | 0 | 12 |
JavaScript | 3 | 0 | 12 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 199.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 167 | |
Interfaces | 90 | |
Traits | 9 | |
Classes | 1,087 | |
▷ Abstract classes | 31 | 2.85% |
▷ Concrete classes | 1,056 | 97.15% |
▷ Final classes | 62 | 5.87% |
Methods | 8,933 | |
▷ Static methods | 738 | 8.26% |
▷ Public methods | 7,868 | 88.08% |
▷ Protected methods | 705 | 7.89% |
▷ Private methods | 360 | 4.03% |
Functions | 3,428 | |
▷ Named functions | 3,261 | 95.13% |
▷ Anonymous functions | 167 | 4.87% |
Constants | 391 | |
▷ Global constants | 65 | 16.62% |
▷ Class constants | 326 | 83.38% |
▷ Public constants | 311 | 95.40% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Mini_logo.png | 0.96KB | 0.91KB | ▼ 5.48% |
img/logo_marvin_180b.png | 2.60KB | 2.53KB | ▼ 2.59% |
img/logo_ponto25_100.png | 3.27KB | 2.10KB | ▼ 35.93% |
img/logo.png | 4.59KB | 3.63KB | ▼ 20.96% |