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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.80ms] Passed 4 tests
A check of server-side resources used by Error Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.33 ▼8.02 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.62 ▼0.74 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.17 ▲4.44 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.11 ▲2.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.39 ▼1.20 |
Error Notification /wp-admin/options-general.php?page=error_notification_page | 3.22 | 31.71 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
error_notification_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Error Notification
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲178 | 14.16 ▼0.64 | 5.08 ▲2.95 | 41.55 ▼8.13 |
Dashboard /wp-admin | 2,220 ▲31 | 5.11 ▲0.13 | 112.52 ▼1.69 | 42.44 ▲0.13 |
Posts /wp-admin/edit.php | 2,111 ▲25 | 2.32 ▲0.34 | 40.95 ▲5.89 | 34.37 ▲2.67 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.44 ▲5.72 | 597.37 ▼111.05 | 50.83 ▼1.10 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.47 ▲0.31 | 96.18 ▼19.94 | 44.25 ▼6.88 |
Error Notification /wp-admin/options-general.php?page=error_notification_page | 1,316 | 2.35 | 40.39 | 61.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
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 register_activation_hook() in wp-content/plugins/error-notification/main.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Screenshot #1), #2 (Screenshot #2), #3 (Screenshot #3)
error-notification/main.php 92% from 13 tests
The main PHP file in "Error Notification" ver. 0.2.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("error-notification.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected739 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 151 | 96 | 626 |
JavaScript | 1 | 23 | 17 | 90 |
PO File | 1 | 4 | 4 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.27MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/settings.png | 4.12KB | 1.45KB | ▼ 64.76% |
img/red.png | 0.17KB | 0.25KB | 0.00% |
img/blue.png | 0.17KB | 0.25KB | 0.00% |
screenshot-1.png | 102.41KB | 25.49KB | ▼ 75.11% |
img/dark.png | 0.16KB | 0.25KB | 0.00% |