Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▼2.96ms] Passed 4 tests
An overview of server-side resources used by Sedox Performance Vehicle Catalogue
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.63 | 32.01 ▼8.13 |
Dashboard /wp-admin | 3.98 ▲0.67 | 52.67 ▲1.30 |
Posts /wp-admin/edit.php | 4.09 ▲0.73 | 53.46 ▲8.11 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 86.17 ▼8.38 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 40.33 ▲3.39 |
Server storage [IO: ▲5.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 747 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
sedox_vehicle_catalogue_configuration |
sedox_vehicle_catalogue_customization |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Sedox Performance Vehicle Catalogue
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲146 | 14.62 ▼0.09 | 51.37 ▲49.64 | 41.75 ▼3.32 |
Dashboard /wp-admin | 2,208 ▲37 | 5.63 ▼0.00 | 97.26 ▼4.54 | 42.62 ▼4.69 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 1.95 ▼0.06 | 33.56 ▼2.81 | 30.76 ▼7.61 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.05 ▼0.08 | 694.05 ▼5.90 | 59.43 ▲4.14 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.17 ▲0.04 | 95.52 ▼11.73 | 40.46 ▼7.76 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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)
Even though everything seems fine, this is not 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sedox-performance-vehicle-catalogue/sedox-catalogue.php
- 328× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SedoxVDb\\Base\\BaseController' not found in wp-content/plugins/sedox-performance-vehicle-catalogue/src/Api/Callbacks/ManagerCallbacks.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sedox-performance-vehicle-catalogue/vendor/coenjacobs/mozart/tests/Console/Commands/ComposeTest.php:9
- > PHP Fatal error
Uncaught Error: Interface 'SedoxWPCatalogue\\Dependencies\\Tuningfiles\\Model\\ModelInterface' not found in wp-content/plugins/sedox-performance-vehicle-catalogue/vendor_mozart/Tuningfiles/vendor/sedox/tuningfiles-php-sdk/Model/Error404Error.php:42
- > PHP Fatal error
Uncaught Error: Interface 'CoenJacobs\\Mozart\\Replace\\Replacer' not found in wp-content/plugins/sedox-performance-vehicle-catalogue/vendor/coenjacobs/mozart/src/Replace/BaseReplacer.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sedox-performance-vehicle-catalogue/vendor_mozart/Tuningfiles/vendor/sedox/tuningfiles-php-sdk/test/Api/VehicleDatabaseApiTest.php:42
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Comparator\\Comparator' not found in wp-content/plugins/sedox-performance-vehicle-catalogue/vendor/symfony/finder/Comparator/NumberComparator.php:35
- > PHP Fatal error
Uncaught Error: Interface 'League\\Flysystem\\ReadInterface' not found in wp-content/plugins/sedox-performance-vehicle-catalogue/vendor/league/flysystem/src/AdapterInterface.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Console\\Formatter\\OutputFormatterStyleInterface' not found in wp-content/plugins/sedox-performance-vehicle-catalogue/vendor/symfony/console/Formatter/OutputFormatterStyle.php:21
- > PHP Fatal error
Uncaught Error: Interface 'CoenJacobs\\Mozart\\Composer\\Autoload\\Autoloader' not found in wp-content/plugins/sedox-performance-vehicle-catalogue/vendor/coenjacobs/mozart/src/Composer/Autoload/Classmap.php:5
- > PHP Fatal error
Uncaught Error: Interface 'SedoxWPCatalogue\\Dependencies\\Tuningfiles\\Model\\ModelInterface' not found in wp-content/plugins/sedox-performance-vehicle-catalogue/vendor_mozart/Tuningfiles/vendor/sedox/tuningfiles-php-sdk/Model/Error401.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #3 (Frontend customization) image required
- Contributors: Plugin contributors not specified
sedox-performance-vehicle-catalogue/sedox-catalogue.php 77% from 13 tests
"Sedox Performance Vehicle Catalogue" version 1.4.1-build.4...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1.4.1-build.4...")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sedox-performance-vehicle-catalogue.php" instead of "sedox-catalogue.php")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/sedox-performance-vehicle-catalogue/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .bat - Batch File in Windows
- ☣ wp-content/plugins/sedox-performance-vehicle-catalogue/vendor/bin/mozart.bat
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 584 | 13,003 | 38,537 | 77,581 |
Markdown | 88 | 1,084 | 0 | 3,334 |
JSON | 21 | 0 | 0 | 2,736 |
Bourne Again Shell | 1 | 10 | 14 | 60 |
YAML | 2 | 3 | 1 | 43 |
XML | 3 | 1 | 1 | 42 |
Bourne Shell | 1 | 14 | 8 | 38 |
DOS Batch | 1 | 0 | 0 | 5 |
CSS | 3 | 0 | 0 | 3 |
JavaScript | 3 | 0 | 8 | 3 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 593.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 82 | |
Interfaces | 53 | |
Traits | 16 | |
Classes | 462 | |
▷ Abstract classes | 18 | 3.90% |
▷ Concrete classes | 444 | 96.10% |
▷ Final classes | 55 | 12.39% |
Methods | 5,133 | |
▷ Static methods | 835 | 16.27% |
▷ Public methods | 4,645 | 90.49% |
▷ Protected methods | 180 | 3.51% |
▷ Private methods | 308 | 6.00% |
Functions | 543 | |
▷ Named functions | 208 | 38.31% |
▷ Anonymous functions | 335 | 61.69% |
Constants | 451 | |
▷ Global constants | 94 | 20.84% |
▷ Class constants | 357 | 79.16% |
▷ Public constants | 310 | 86.83% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.37MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/4419fd4d332f11791ffc.png | 6.09KB | 4.82KB | ▼ 20.86% |
assets/images/08ed75601da4e9a8d2d4.png | 4.62KB | 3.62KB | ▼ 21.61% |
assets/images/b5005355626c545cdeec.png | 3.04KB | 2.70KB | ▼ 11.09% |
assets/images/logo.png | 6.70KB | 3.18KB | ▼ 52.52% |
assets/images/1dc5578b8363fd7610fe.png | 5.94KB | 4.26KB | ▼ 28.25% |