Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.60ms] Passed 4 tests
An overview of server-side resources used by WP Post Status Notifications
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.87 ▼5.40 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.75 ▼14.94 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.59 ▲3.25 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.42 ▼16.67 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.97 ▲2.60 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
wp_post_status_rules |
wp_post_status_email |
widget_recent-posts |
wp_post_status_groups |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
wp_post_status_post_types |
Browser metrics Passed 4 tests
A check of browser resources used by WP Post Status Notifications
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 14.80 ▲0.57 | 1.90 ▲0.12 | 42.79 ▼4.22 |
Dashboard /wp-admin | 2,219 ▲31 | 4.86 ▲0.01 | 113.13 ▼2.43 | 36.27 ▼8.87 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▼0.00 | 38.59 ▲3.20 | 35.47 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 22.60 ▼0.59 | 641.56 ▼39.08 | 61.53 ▲12.31 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.24 ▲0.07 | 97.86 ▲2.22 | 42.68 ▲0.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- wp_post_status_groups
- wp_post_status_rules
- wp_post_status_email
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- wp_post_status_post_types
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-post-status-notifications/wp_post_status_notifications.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: post email, wp post status notifications, post, page, post status
wp-post-status-notifications/wp_post_status_notifications.php 69% from 13 tests
"WP Post Status Notifications" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: Use only dashes and lowercase characters for the domain path ("")
- Text Domain: The text domain should only use lowercase characters and dashes
- Domain Path: The domain path should be prefixed with a forward slash character ("/")
- Main file name: Name the main plugin file the same as the plugin slug ("wp-post-status-notifications.php" instead of "wp_post_status_notifications.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
Everything looks great! No dangerous files found in this plugin992 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 123 | 86 | 605 |
PO File | 1 | 89 | 104 | 201 |
CSS | 1 | 4 | 0 | 93 |
JavaScript | 1 | 28 | 24 | 93 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 95.00 |
▷ Minimum class complexity | 95.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 5.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 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 | 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
No PNG files were detected