Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.05ms] Passed 4 tests
Server-side resources used by Post Status Indicator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 40.46 ▲20.32 |
Dashboard /wp-admin | 3.07 ▲0.01 | 44.34 ▲4.76 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 40.57 ▼5.33 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 86.71 ▼562.60 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.51 ▲2.98 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Post Status Indicator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 15.88 ▲0.33 | 9.34 ▼2.20 | 42.51 ▼4.20 |
Dashboard /wp-admin | 2,990 ▲56 | 6.12 ▲0.18 | 136.25 ▼13.06 | 115.89 ▲2.33 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.71 ▲0.00 | 70.54 ▲7.91 | 93.62 ▲6.30 |
Add New Post /wp-admin/post-new.php | 1,689 ▼2,037 | 18.94 ▲3.82 | 378.54 ▼80.92 | 112.38 ▲2.05 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.04 ▼0.00 | 151.61 ▲4.40 | 120.40 ▲3.18 |
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
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'psi_remove_psi_options' not found or invalid function name
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/post-status-indicator/post-status-indicator.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The Post Status Indicator sample posts displaying color changes), #2 (The Post Status Indicator settings page)
post-status-indicator/post-status-indicator.php 92% from 13 tests
The principal PHP file in "Post Status Indicator" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
No dangerous file extensions were detected10,814 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 10,014 |
JavaScript | 10 | 37 | 87 | 570 |
PHP | 1 | 39 | 31 | 182 |
Markdown | 1 | 15 | 0 | 43 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin