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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.95ms] Passed 4 tests
An overview of server-side resources used by Content Update Notification
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.36 ▼1.74 |
Dashboard /wp-admin | 3.32 ▼0.02 | 45.34 ▼18.15 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.37 ▼3.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 95.66 ▼0.71 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.36 ▼0.16 |
Content Notifications /wp-admin/tools.php?page=content-notification-settings | 3.25 | 31.16 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Content Update Notification
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.21 ▼0.35 | 1.97 ▲0.08 | 38.56 ▼5.81 |
Dashboard /wp-admin | 2,196 ▲18 | 5.56 ▼0.15 | 82.99 ▼30.10 | 39.86 ▲0.07 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.02 | 39.69 ▼2.15 | 35.66 ▼6.23 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.35 ▼4.80 | 629.39 ▼102.86 | 77.40 ▲17.86 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.02 | 101.10 ▲3.80 | 45.04 ▼0.69 |
Content Notifications /wp-admin/tools.php?page=content-notification-settings | 1,394 | 5.50 | 108.97 | 57.29 |
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
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-update-notification/lib/content.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-update-notification/lib/admin.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/content-update-notification/content-update-notification.php:29
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 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
6 plugin tags: compliance, alerts, email updates, notify, change notification...
content-update-notification/content-update-notification.php Passed 13 tests
The main PHP script in "Content Update Notification" version 1.0.2 is automatically included on every request by WordPress
70 characters long description:
Alert users and other people when content has been created or changed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin454 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 169 | 356 | 365 |
PO File | 1 | 22 | 22 | 69 |
CSS | 1 | 6 | 0 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 20 | 62.50% |
▷ Public methods | 31 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.12% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected