Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.70ms] Passed 4 tests
A check of server-side resources used by Shipox
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.65 ▼6.17 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.12 ▼18.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.53 ▼7.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 109.73 ▼6.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.36 ▼2.16 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shipox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.52 | 4.78 ▲2.86 | 49.35 ▼4.26 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▼0.05 | 117.26 ▼16.84 | 46.23 ▼6.11 |
Posts /wp-admin/edit.php | 2,092 ▼3 | 2.01 ▲0.00 | 39.98 ▼3.69 | 35.35 ▼5.08 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 23.18 ▲5.70 | 714.42 ▼38.84 | 54.43 ▼8.28 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.07 | 114.73 ▼20.60 | 50.23 ▼7.32 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/shipox-for-woocommerce/classes/class-shipox-shipping-method.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipox-for-woocommerce/includes/inc-backend-actions.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipox-for-woocommerce/classes/class-shipox-options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipox-for-woocommerce/includes/inc-frontend-actions.php:17
- > PHP Fatal error
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 83% from 29 tests
readme.txt Passed 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
10 plugin tags: sync, products, shipox, shipping, woo commerce...
shipox-for-woocommerce/shipox.php 62% from 13 tests
The main PHP script in "Shipox" version 2.1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("shipox-for-woocommerce.php" instead of "shipox.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 361 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("5.6" instead of "4.4")
- Domain Path: The domain path folder does not exist ("/i18n/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,789 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 588 | 752 | 2,640 |
CSS | 2 | 18 | 0 | 116 |
JavaScript | 1 | 2 | 0 | 25 |
JSON | 1 | 0 | 0 | 5 |
Markdown | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 1 | 4.76% |
Methods | 150 | |
▷ Static methods | 4 | 2.67% |
▷ Public methods | 140 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 6.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 13 | 76.47% |
▷ Class constants | 4 | 23.53% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 1.15KB | 0.46KB | ▼ 60.19% |