Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.09ms] Passed 4 tests
Server-side resources used by WP Post Category Notifications
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.90 ▼4.04 |
Dashboard /wp-admin | 3.33 ▲0.03 | 55.64 ▲1.82 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.62 ▲2.89 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.37 ▼21.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 55.79 ▲17.85 |
WP Post Category Notifications /wp-admin/options-general.php?page=WP_Post_Manager_Options | 3.30 | 40.04 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Post Category Notifications
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.21 ▼0.37 | 1.72 ▲0.08 | 43.82 ▼2.24 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.04 | 93.61 ▲3.23 | 40.46 ▼5.49 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.04 | 34.75 ▼5.62 | 32.04 ▼6.43 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.15 ▲0.09 | 692.22 ▲22.88 | 55.38 ▼4.18 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.41 ▲0.28 | 102.88 ▼4.29 | 42.73 ▼4.81 |
WP Post Category Notifications /wp-admin/options-general.php?page=WP_Post_Manager_Options | 900 | 2.25 | 35.91 | 46.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-post-category-notifications/wp-post-category-notifications_log.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-post-category-notifications/wp-post-category-notifications_options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-category-notifications/wp-post-category-notifications.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-post-category-notifications/wp-post-category-notifications_log_template.php:2
- > 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 97% from 29 tests
readme.txt 94% 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:
- Donate link: Invalid url: ""
wp-post-category-notifications/wp-post-category-notifications.php Passed 13 tests
Analyzing the main PHP file in "WP Post Category Notifications" version 1.0
73 characters long description:
Sends category specific email notifications whenever a post is published.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin673 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 83 | 40 | 517 |
PO File | 2 | 58 | 30 | 156 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
No PNG images were found in this plugin