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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.53ms] Passed 4 tests
A check of server-side resources used by Notice Interceptor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.62 ▼0.97 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.89 ▼2.16 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.28 ▲1.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 106.56 ▲18.54 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.62 ▲3.76 |
Notice Interceptor /wp-admin/options-general.php?page=notice-interceptor/options.php | 3.23 | 32.41 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
notice-interceptor_rules |
notice-interceptor_autohide |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Notice Interceptor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 13.25 ▼1.13 | 5.10 ▲3.30 | 27.80 ▼18.77 |
Dashboard /wp-admin | 2,239 ▲51 | 4.91 ▲0.04 | 115.04 ▲10.87 | 44.19 ▲2.79 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.09 ▲0.10 | 51.43 ▲12.94 | 38.72 ▲5.80 |
Add New Post /wp-admin/post-new.php | 1,372 ▼161 | 16.78 ▼6.35 | 517.07 ▼205.84 | 50.45 ▼8.11 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.26 ▲0.06 | 109.05 ▲4.56 | 48.24 ▲1.75 |
Notice Interceptor /wp-admin/options-general.php?page=notice-interceptor/options.php | 874 | 1.76 | 31.88 | 29.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/notice-interceptor/options.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/notice-interceptor/includes/ajax_notice.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/notice-interceptor/notice-interceptor.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Donate link: Invalid url: "wpgear.xyz/notice-interceptor/"
notice-interceptor/notice-interceptor.php Passed 13 tests
"Notice Interceptor" version 4.24's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
113 characters long description:
Tool for creating a comfortable living environment in the Admin area without annoying notifications and ad units.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin660 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 91 | 7 | 280 |
PHP | 5 | 86 | 55 | 267 |
CSS | 1 | 0 | 4 | 113 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin