Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.51ms] Passed 4 tests
A check of server-side resources used by ColorMeShop WordPress Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.63 ▲1.71 |
Dashboard /wp-admin | 3.42 ▲0.08 | 51.79 ▼14.72 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.54 ▼3.86 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.92 ▼12.88 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.11 ▲1.42 |
Server storage [IO: ▲5.84MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 457 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for ColorMeShop WordPress Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.19 ▼0.16 | 1.68 ▼0.65 | 46.47 ▲0.49 |
Dashboard /wp-admin | 2,208 ▲37 | 5.55 ▲0.04 | 90.00 ▼1.62 | 44.20 ▲6.22 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.03 ▲0.05 | 35.05 ▼1.04 | 38.32 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 22.99 ▲4.88 | 663.13 ▲25.58 | 50.79 ▼24.47 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.13 ▼0.07 | 101.90 ▼25.87 | 48.41 ▼1.32 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 258× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/colormeshop/vendor/guzzlehttp/promises/src/CancellationException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\Flysystem\\FilesystemException' not found in wp-content/plugins/colormeshop/vendor/league/flysystem/src/NotSupportedException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'ColorMeShop\\Swagger\\Model\\ModelInterface' not found in wp-content/plugins/colormeshop/src/Swagger/Model/V1productsProduct.php:42
- > PHP Fatal error
Uncaught Error: Interface 'ColorMeShop\\Shortcode_Interface' not found in wp-content/plugins/colormeshop/src/shortcodes/product/class-option.php:7
- > PHP Fatal error
Uncaught Error: Interface 'ColorMeShop\\Swagger\\Model\\ModelInterface' not found in wp-content/plugins/colormeshop/src/Swagger/Model/InlineResponse20011Groups.php:42
- > PHP Fatal error
Uncaught Error: Interface 'ColorMeShop\\Swagger\\Model\\ModelInterface' not found in wp-content/plugins/colormeshop/src/Swagger/Model/V1ProductsBody.php:42
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/colormeshop/vendor/pepabo/oauth2-colormeshop/test/src/Provider/ColorMeShopTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'ColorMeShop\\Swagger\\Model\\ModelInterface' not found in wp-content/plugins/colormeshop/src/Swagger/Model/ScriptTag1.php:43
- > PHP Fatal error
Uncaught Error: Interface 'ColorMeShop\\Swagger\\Model\\ModelInterface' not found in wp-content/plugins/colormeshop/src/Swagger/Model/ProductVariant.php:42
- > PHP Fatal error
Uncaught Error: Class 'League\\Flysystem\\Plugin\\AbstractPlugin' not found in wp-content/plugins/colormeshop/vendor/league/flysystem/src/Plugin/ListPaths.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: ec, colormeshop, ecommerce
colormeshop/colormeshop-wp-plugin.php 85% from 13 tests
This is the main PHP file of "ColorMeShop WordPress Plugin" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("colormeshop.php" instead of "colormeshop-wp-plugin.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 350 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin59,918 lines of code in 427 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 387 | 11,990 | 46,356 | 55,464 |
Markdown | 11 | 755 | 0 | 2,652 |
JSON | 18 | 1 | 0 | 1,578 |
reStructuredText | 1 | 96 | 139 | 97 |
XML | 3 | 2 | 0 | 53 |
YAML | 4 | 14 | 0 | 53 |
make | 2 | 7 | 0 | 18 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 44 | |
Interfaces | 31 | |
Traits | 16 | |
Classes | 310 | |
▷ Abstract classes | 7 | 2.26% |
▷ Concrete classes | 303 | 97.74% |
▷ Final classes | 16 | 5.28% |
Methods | 5,574 | |
▷ Static methods | 865 | 15.52% |
▷ Public methods | 5,242 | 94.04% |
▷ Protected methods | 167 | 3.00% |
▷ Private methods | 165 | 2.96% |
Functions | 403 | |
▷ Named functions | 109 | 27.05% |
▷ Anonymous functions | 294 | 72.95% |
Constants | 486 | |
▷ Global constants | 44 | 9.05% |
▷ Class constants | 442 | 90.95% |
▷ Public constants | 442 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 1.87MB with 1.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/create_page.png | 311.63KB | 87.02KB | ▼ 72.08% |
screenshots/page_id.png | 193.16KB | 55.80KB | ▼ 71.11% |
screenshots/shop_page.png | 534.55KB | 155.43KB | ▼ 70.92% |
screenshots/sitemap.png | 164.90KB | 51.22KB | ▼ 68.94% |
screenshots/application_credentials.png | 218.77KB | 68.51KB | ▼ 68.68% |