Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/approval-workflow/approval-workflow.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; Approval_Workflow has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼53.22ms] Passed 4 tests
Server-side resources used by Approval Workflow
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.23 ▼34.98 |
Dashboard /wp-admin | 2.16 ▼1.15 | 5.68 ▼43.37 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 7.09 ▼43.69 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.20 ▼90.84 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.42 ▼28.51 |
Approval Workflow /wp-admin/options-general.php?page=approval-workflow-options | 2.16 | 5.51 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
approval-workflow |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Approval Workflow
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.36 ▲0.07 | 2.00 ▲0.10 | 44.83 ▲3.41 |
Dashboard /wp-admin | 2,202 ▲25 | 5.56 ▼0.07 | 89.34 ▼2.14 | 77.03 ▲27.90 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 2.03 ▲0.00 | 38.65 ▼1.81 | 34.79 ▲2.50 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.37 ▲0.21 | 683.62 ▼5.20 | 167.16 ▲111.23 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.15 ▼0.05 | 98.16 ▼18.82 | 63.70 ▲19.37 |
Approval Workflow /wp-admin/options-general.php?page=approval-workflow-options | 876 | 1.99 | 23.83 | 40.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/approval-workflow/approval-workflow.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; Approval_Workflow has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- approval-workflow
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=approval-workflow-options
- > Deprecated in wp-content/plugins/approval-workflow/approval-workflow.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; Approval_Workflow has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=approval-workflow-options
- > Deprecated in wp-content/plugins/approval-workflow/options.class.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; Approval_Workflow_Options has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/approval-workflow/approval-workflow.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/approval-workflow/approval-workflow.php:14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/approval-workflow/class/workflow-list-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/approval-workflow/class/workflow-list-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/approval-workflow/class/workflow-list-table.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Added a checkbox to the edit page for submitting to the workflow.), #2 (Approval Workflow dashboard. This shows all the items in the workflow.), #3 (Comparing the old and new pages.)
approval-workflow/approval-workflow.php 92% from 13 tests
The main PHP script in "Approval Workflow" version 1.3.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
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 plugin416 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 95 | 41 | 416 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
4 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 21.54KB | 8.62KB | ▼ 59.99% |
images/arrow_join.png | 0.61KB | 0.62KB | 0.00% |
screenshot-1.png | 9.55KB | 4.65KB | ▼ 51.32% |
screenshot-3.png | 46.49KB | 16.68KB | ▼ 64.12% |