Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/ocws-admin-bar-greeting/class/OCWS_welcome_message.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; OCWS_welcome_message has a deprecated constructor
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.54ms] Passed 4 tests
An overview of server-side resources used by OCWS Admin Bar Greeting
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.15 ▼2.45 |
Dashboard /wp-admin | 3.31 ▼0.03 | 52.68 ▼18.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.20 ▲0.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.36 ▼12.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.85 ▼1.24 |
OCWS Admin Greeting /wp-admin/options-general.php?page=admin-bar-welcome | 3.20 | 34.98 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for OCWS Admin Bar Greeting
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.38 ▲0.10 | 1.76 ▼0.24 | 42.77 ▼1.91 |
Dashboard /wp-admin | 2,202 ▲25 | 5.57 ▼0.09 | 83.44 ▼4.73 | 38.71 ▼0.28 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.01 | 36.24 ▼0.58 | 34.08 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,531 ▲6 | 23.33 ▼0.20 | 674.27 ▲82.25 | 63.78 ▲16.97 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▼0.06 | 99.07 ▼3.77 | 45.59 ▲5.13 |
OCWS Admin Greeting /wp-admin/options-general.php?page=admin-bar-welcome | 815 | 2.03 | 26.55 | 30.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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 | 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ocws-admin-bar-greeting/class/OCWS_welcome_message.class.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (The Options Page for the Plugin, showing how you can set your personal greeting.), #2 (A close-up of the greeting produced.)
- Plugin Name: You should set the name of your plugin on the first line (
=== ocws-admin-bar-greeting ===
)
ocws-admin-bar-greeting/OCWS_welcome_message.php 85% from 13 tests
"OCWS Admin Bar Greeting" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 392 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ocws-admin-bar-greeting.php" instead of "OCWS_welcome_message.php")
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
There were no executable files found in this plugin90 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 44 | 90 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/castlelogomain.png | 8.34KB | 4.66KB | ▼ 44.09% |
screenshot-2.png | 16.35KB | 6.26KB | ▼ 61.73% |
images/castlelogo32x39.png | 1.40KB | 1.89KB | 0.00% |
images/castlelogo16x16.png | 0.64KB | 0.97KB | 0.00% |
screenshot-1.png | 33.08KB | 11.78KB | ▼ 64.38% |