Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.17ms] Passed 4 tests
Server-side resources used by Plannedsoft Min/Max Quantities
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.54 ▼2.04 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.33 ▼4.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.04 ▼0.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.54 ▼4.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.27 ▼1.26 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Plannedsoft Min/Max Quantities
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.49 ▲0.10 | 1.73 ▼0.30 | 46.25 ▼3.72 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼0.05 | 107.02 ▼11.84 | 38.89 ▼7.69 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 1.99 ▼0.05 | 44.79 ▲9.03 | 36.53 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.37 ▲0.05 | 672.54 ▲57.06 | 54.67 ▲4.08 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.21 ▲0.00 | 98.57 ▼4.56 | 44.73 ▼1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Roles' not found in wp-content/plugins/planned-soft-min-max-quantities/includes/class-wc-min-max-quantities-admin.php:16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/planned-soft-min-max-quantities/plannedsoft-min-max-quantities.php on line 25
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/planned-soft-min-max-quantities/plannedsoft-min-max-quantities.php on line 25
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/planned-soft-min-max-quantities/plannedsoft-min-max-quantities.php on line 25
- > 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
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
9 plugin tags: min max rules, plannedsoft, woocommece, min max quantity, minimum quantity...
planned-soft-min-max-quantities/plannedsoft-min-max-quantities.php 85% from 13 tests
The entry point to "Plannedsoft Min/Max Quantities" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("planned-soft-min-max-quantities.php" instead of "plannedsoft-min-max-quantities.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected6,930 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 3,072 |
PHP | 15 | 493 | 623 | 1,640 |
CSS | 3 | 38 | 6 | 1,513 |
SVG | 1 | 0 | 0 | 362 |
JavaScript | 4 | 52 | 40 | 307 |
XML | 1 | 7 | 3 | 36 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 31.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 85 | |
▷ Static methods | 4 | 4.71% |
▷ Public methods | 78 | 91.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 8.24% |
Functions | 20 | |
▷ Named functions | 18 | 90.00% |
▷ Anonymous functions | 2 | 10.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
17 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/remove.png | 3.32KB | 0.62KB | ▼ 81.33% |
assets/admin/images/wc-tab-icons.png | 2.34KB | 2.12KB | ▼ 9.50% |
assets/legacy/admin/images/toggle.png | 2.08KB | 1.78KB | ▼ 14.61% |
assets/images/add.png | 3.37KB | 0.66KB | ▼ 80.54% |
plannedsoft-core/assets/images/oldadmin-menu-icon.png | 0.46KB | 0.64KB | 0.00% |