Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.59ms] Passed 4 tests
Server-side resources used by Corksy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.71 ▲0.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.20 ▲1.98 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.34 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.21 ▼5.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.69 ▼1.31 |
Server storage [IO: ▲165.90MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- The filesystem usage should be lower than 25MB (currently using 165.90MB)
Filesystem: 2,019 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Corksy
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.26 ▼1.04 | 1.52 ▼0.22 | 40.03 ▼3.77 |
Dashboard /wp-admin | 2,203 ▲15 | 5.79 ▲0.88 | 93.48 ▼21.61 | 39.47 ▼4.36 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.08 | 39.04 ▲4.70 | 34.79 ▲1.62 |
Add New Post /wp-admin/post-new.php | 1,535 ▼7 | 23.14 ▲4.99 | 689.92 ▲55.45 | 63.74 ▲7.24 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▲0.01 | 93.08 ▼6.01 | 42.10 ▼3.03 |
Uninstaller [IO: ▲165.90MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the followingThis plugin did not uninstall successfully, leaving 7 options in the database
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/corksy/uninstall.php+15
Use of undefined constant CKSY_PATH - assumed 'CKSY_PATH' (this will throw an Error in a future version of PHP)
- The plugin did not uninstall successfully, leaving 2,019 files (165.90MB) in the plugin directory
- (new file) assets/css/bootstrap.rtl.min.css.map
- (new file) assets/fonts/Roboto/Roboto-Black-webfont.eot
- (new file) assets/fonts/Roboto/Roboto-Black-webfont.svg
- (new file) Corksy_Setup_Class.php
- (new file) assets/css/bootstrap.rtl.min.css
- (new file) assets/fonts/Roboto/Roboto-Black-webfont.ttf
- (new file) assets/css/bootstrap.min.css.map
- (new file) assets/css/bootstrap.min.css
- (new file) assets/fonts/Roboto/Roboto-Black-webfont.woff
- (new file) assets/css/wine.css
- ...
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'AbstractBlock' not found in wp-content/plugins/corksy/corksy-commerce-blocks/BlockTypes/Orders.php:9
- > PHP Fatal error
Uncaught Error: Class 'AbstractBlock' not found in wp-content/plugins/corksy/corksy-commerce-blocks/BlockTypes/WineClubs.php:8
- > PHP Fatal error
Uncaught Error: Class 'AbstractBlock' not found in wp-content/plugins/corksy/corksy-commerce-blocks/BlockTypes/WineEventBooking.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corksy/corksy-admin/includes/class-create-admin-menu.php:11
- > PHP Fatal error
Uncaught Error: Class 'AbstractBlock' not found in wp-content/plugins/corksy/corksy-commerce-blocks/BlockTypes/WineEvents.php:8
- > PHP Fatal error
Uncaught Error: Class 'AbstractBlock' not found in wp-content/plugins/corksy/corksy-commerce-blocks/BlockTypes/Register.php:8
- > PHP Fatal error
Uncaught Error: Class 'AbstractBlock' not found in wp-content/plugins/corksy/corksy-commerce-blocks/BlockTypes/Account.php:9
- > PHP Fatal error
Uncaught Error: Class 'AbstractBlock' not found in wp-content/plugins/corksy/corksy-commerce-blocks/BlockTypes/Subscription.php:8
- > 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 73% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please describe screenshot #0 in corksy/assets to your readme.txt
- Tags: Please add at least on tag
corksy/corksycommerce.php 54% from 13 tests
This is the main PHP file of "Corksy" version 0.0.16, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires PHP: Required version must match the one declared in readme.txt ("5.5" instead of "7.0")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("corksy.php" instead of "corksycommerce.php")
- Description: Make the plugin description longer than 10 characters (currently 7 characters long)
- Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist
- Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "5.6")
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
Good job! No executable or dangerous file extensions detected1,438,834 lines of code in 1,926 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 32 | 293,129 | 341,247 | 1,383,856 |
CSS | 38 | 5,907 | 917 | 29,884 |
SVG | 1,767 | 0 | 15 | 11,515 |
Sass | 19 | 551 | 71 | 6,314 |
LESS | 18 | 548 | 71 | 6,244 |
PHP | 52 | 272 | 135 | 1,021 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 1.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 2 | 6.45% |
▷ Concrete classes | 29 | 93.55% |
▷ Final classes | 1 | 3.45% |
Methods | 95 | |
▷ Static methods | 11 | 11.58% |
▷ Public methods | 86 | 90.53% |
▷ Protected methods | 6 | 6.32% |
▷ Private methods | 3 | 3.16% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wine-pic-1.png | 16.33KB | 6.77KB | ▼ 58.56% |
assets/images/wine-pic-2.png | 18.87KB | 7.96KB | ▼ 57.84% |
assets/images/prod-pic.png | 38.99KB | 18.60KB | ▼ 52.30% |