Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.66ms] Passed 4 tests
A check of server-side resources used by Simple post status notifications
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 46.79 ▼7.90 |
Dashboard /wp-admin | 3.40 ▲0.09 | 49.26 ▼3.33 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.26 ▼5.29 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.11 ▼18.12 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.98 ▼0.34 |
Simple Post Status Notifications /wp-admin/options-general.php?page=spsn-settings | 3.29 | 33.32 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Simple post status notifications: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.32 ▲0.03 | 1.69 ▼0.12 | 42.87 ▼2.55 |
Dashboard /wp-admin | 2,196 ▲16 | 5.57 ▼0.04 | 83.36 ▼8.75 | 39.07 ▼3.41 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.94 ▼0.08 | 34.62 ▼2.05 | 33.10 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 22.90 ▼0.13 | 639.79 ▼13.71 | 46.36 ▼17.50 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.20 ▼0.03 | 106.94 ▼10.95 | 47.09 ▼0.80 |
Simple Post Status Notifications /wp-admin/options-general.php?page=spsn-settings | 876 | 2.00 | 25.80 | 25.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-post-status-notifications/spsn.php:441
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== simple-post-status-notifications ===
) - Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Requires at least: The plugin version is formatted incorrectly
simple-post-status-notifications/spsn.php 85% from 13 tests
The main PHP script in "Simple post status notifications" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-post-status-notifications.php" instead of "spsn.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected403 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 76 | 104 | 280 |
PO File | 2 | 40 | 40 | 123 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin