Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.53MB] [CPU: ▼15.19ms] Passed 4 tests
This is a short check of server-side resources used by Skeerel - Achat Express
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.94 ▼3.12 |
Dashboard /wp-admin | 3.43 ▲0.12 | 53.64 ▼0.19 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 52.73 ▲4.48 |
Add New Post /wp-admin/post-new.php | 3.47 ▼2.41 | 41.41 ▼61.93 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.37 ▲7.25 |
Server storage [IO: ▲3.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Skeerel - Achat Express
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲76 | 13.38 ▼1.05 | 2.22 ▲0.17 | 45.31 ▼0.98 |
Dashboard /wp-admin | 2,269 ▲66 | 5.80 ▼0.06 | 108.15 ▼18.95 | 43.66 ▼2.14 |
Posts /wp-admin/edit.php | 2,150 ▲47 | 2.03 ▲0.03 | 41.84 ▲1.93 | 37.17 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,562 ▲22 | 23.15 ▼0.14 | 614.70 ▼33.30 | 63.00 ▼5.56 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.29 ▲0.03 | 110.29 ▲3.82 | 46.44 ▼1.34 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/skeerel/templates/skeerel_button_product_page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/skeerel/templates/skeerel_encart_checkout.php:4
- > PHP Fatal error
Uncaught Error: Class 'Skeerel\\Util\\Enum' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Delivery/Color.php:19
- > PHP Fatal error
Uncaught Error: Class 'Skeerel\\Util\\Enum' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Payment/Currency.php:16
- > PHP Fatal error
Uncaught Error: Class 'Skeerel\\Util\\Enum' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Website/Status.php:16
- > PHP Fatal error
Uncaught Error: Class 'Skeerel\\Data\\Address\\BaseAddress' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Address/IndividualAddress.php:11
- > PHP Fatal error
Uncaught Error: Class 'Skeerel\\Util\\Enum' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Delivery/Type.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/skeerel/api/Skeerel_Custom_Route.php:3
- > PHP Fatal error
Uncaught Error: Class 'Skeerel\\Util\\Enum' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Payment/Status.php:27
- > PHP Fatal error
Uncaught Error: Class 'Skeerel\\Data\\Address\\BaseAddress' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Address/CompanyAddress.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7, #8 in skeerel/assets to your readme.txt
skeerel/skeerel.php 92% from 13 tests
"Skeerel - Achat Express" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("5.2" instead of "3.5.0")
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 plugin21,533 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 12 | 8,983 |
CSS | 18 | 3,570 | 69 | 8,001 |
PHP | 54 | 1,175 | 1,604 | 3,827 |
PO File | 1 | 84 | 106 | 255 |
Markdown | 1 | 67 | 0 | 211 |
JavaScript | 3 | 25 | 17 | 166 |
JSON | 3 | 0 | 0 | 90 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 12.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 2 | 5.56% |
▷ Concrete classes | 34 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 237 | |
▷ Static methods | 27 | 11.39% |
▷ Public methods | 223 | 94.09% |
▷ Protected methods | 1 | 0.42% |
▷ Private methods | 13 | 5.49% |
Functions | 41 | |
▷ Named functions | 35 | 85.37% |
▷ Anonymous functions | 6 | 14.63% |
Constants | 24 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 24 | 100.00% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo.png | 14.35KB | 4.21KB | ▼ 70.66% |
public/images/skeerel-logo.png | 0.64KB | 0.65KB | 0.00% |
public/images/skeerel_white.png | 0.49KB | 0.52KB | 0.00% |