Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.48ms] Passed 4 tests
This is a short check of server-side resources used by Order approval for WCFM
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 41.26 ▼1.36 |
Dashboard /wp-admin | 3.47 ▲0.13 | 48.60 ▼12.93 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 52.87 ▲1.18 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.18 | 84.39 ▼8.80 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 37.72 ▲1.76 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Order approval for WCFM: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲163 | 13.37 ▼0.99 | 8.31 ▲6.70 | 46.53 ▲2.52 |
Dashboard /wp-admin | 2,232 ▲52 | 5.52 ▼0.08 | 87.37 ▲0.20 | 40.38 ▲3.87 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.15 ▲0.16 | 48.54 ▲8.73 | 36.99 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 22.83 ▼0.26 | 628.07 ▼93.78 | 68.88 ▲9.39 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.17 ▼0.06 | 97.27 ▼24.01 | 45.55 ▼1.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/order-approval-for-wcfm/admin/partials/order-approval-for-wcfm-admin-display.php
- > /wp-content/plugins/order-approval-for-wcfm/public/partials/order-approval-for-wcfm-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function sevengits\\is_admin() in wp-content/plugins/order-approval-for-wcfm/plugin-deactivation-survey/deactivate-feedback-form.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Orders listing screen showing approve and reject buttons.) image missing
order-approval-for-wcfm/order-approval-for-wcfm.php 85% from 13 tests
The main PHP script in "Order approval for WCFM" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 144 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "3.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,162 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 196 | 899 | 697 |
CSS | 7 | 102 | 59 | 314 |
JavaScript | 5 | 31 | 66 | 133 |
Markdown | 1 | 7 | 0 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 3 | 6.67% |
▷ Public methods | 29 | 64.44% |
▷ Protected methods | 8 | 17.78% |
▷ Private methods | 8 | 17.78% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 5 | |
▷ Global constants | 5 | 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
There were not PNG files found in your plugin