Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/meest-for-woocommerce/meest_shipping.php+41
require_once(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.75ms] Passed 4 tests
Analyzing server-side resources used by MeestForWooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.04 ▼3.28 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.38 ▼13.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.46 ▼2.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.64 ▼7.63 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.07 ▼1.45 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 244 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
MeestForWooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.80 ▲0.43 | 1.71 ▼0.35 | 38.92 ▲0.52 |
Dashboard /wp-admin | 2,206 ▲15 | 5.86 ▲0.93 | 107.76 ▼8.67 | 42.44 ▲0.72 |
Posts /wp-admin/edit.php | 2,092 ▲24 | 2.12 ▲0.06 | 40.58 ▲4.50 | 33.62 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.32 ▲0.34 | 595.89 ▼91.36 | 50.58 ▼5.61 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.02 | 98.50 ▼7.83 | 41.32 ▼0.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/meest-for-woocommerce/uninstall.php+8
Use of undefined constant MEEST_PLUGIN_NAME - assumed 'MEEST_PLUGIN_NAME' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 51× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: parcel in wp-content/plugins/meest-for-woocommerce/resources/views/pages/parcel_form.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'MeestShipping\\Core\\Controller' not found in wp-content/plugins/meest-for-woocommerce/src/Controllers/SettingController.php:11
- > PHP Fatal error
Uncaught Error: Class 'MeestShipping\\Core\\Resource' not found in wp-content/plugins/meest-for-woocommerce/src/Resources/PickupApiResource.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/meest-for-woocommerce/resources/views/pages/parcel_list.php:12
- > PHP Fatal error
Uncaught Error: Class 'MeestShipping\\Core\\Resource' not found in wp-content/plugins/meest-for-woocommerce/src/Resources/ParcelApiResource.php:6
- > PHP Fatal error
Uncaught Error: Interface 'MeestShipping\\Contracts\\Module' not found in wp-content/plugins/meest-for-woocommerce/src/Modules/Option.php:9
- > PHP Fatal error
Uncaught Error: Class 'MeestShipping\\Core\\Resource' not found in wp-content/plugins/meest-for-woocommerce/src/Resources/CostApiResource.php:6
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/meest-for-woocommerce/resources/views/pages/pickup_form.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'MeestShipping\\Repositories\\Repository' not found in wp-content/plugins/meest-for-woocommerce/src/Repositories/PackTypesRepository.php:5
- > PHP Fatal error
Uncaught Error: Class 'MeestShipping\\Core\\Table' not found in wp-content/plugins/meest-for-woocommerce/src/Tables/ParcelTable.php:11
- > PHP Notice
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: delivery, shop, meest-express, courier, post...
meest-for-woocommerce/meest_shipping.php 85% from 13 tests
This is the main PHP file of "MeestForWooCommerce" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("meest-for-woocommerce.php" instead of "meest_shipping.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.1" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected20,551 lines of code in 234 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 134 | 316 | 16 | 7,688 |
CSS | 11 | 1 | 202 | 6,297 |
PHP | 85 | 928 | 281 | 5,909 |
PO File | 2 | 307 | 4 | 640 |
JSON | 2 | 0 | 0 | 17 |
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.38 |
Average class complexity | 7.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 1 | |
Traits | 3 | |
Classes | 60 | |
▷ Abstract classes | 5 | 8.33% |
▷ Concrete classes | 55 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 272 | |
▷ Static methods | 58 | 21.32% |
▷ Public methods | 242 | 88.97% |
▷ Protected methods | 1 | 0.37% |
▷ Private methods | 29 | 10.66% |
Functions | 21 | |
▷ Named functions | 7 | 33.33% |
▷ Anonymous functions | 14 | 66.67% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/icon_big.png | 7.92KB | 2.19KB | ▼ 72.32% |
public/img/logo.png | 8.15KB | 3.87KB | ▼ 52.56% |
public/img/icon.png | 3.29KB | 0.49KB | ▼ 85.27% |