Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/notify-wp/inc/api.class.php+10
Non-static method Notify_Plugin::get_options() should not be called statically
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.55ms] Passed 4 tests
A check of server-side resources used by notify-wp
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.37 ▼35.83 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.01 ▼40.40 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.82 ▼42.35 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.08 ▼95.63 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.47 ▼28.58 |
notify /wp-admin/options-general.php?page=notify-for-wordpress | 2.09 | 5.50 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
notify_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for notify-wp
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.52 ▼0.88 | 1.70 ▼0.31 | 39.50 ▼7.87 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▲0.00 | 99.31 ▼5.19 | 38.49 ▼5.10 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.00 ▲0.04 | 39.59 ▼1.37 | 35.14 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,536 ▲14 | 23.16 ▼0.35 | 657.99 ▲9.53 | 59.42 ▲9.36 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.14 ▼0.05 | 96.60 ▼1.28 | 43.27 ▲1.88 |
notify /wp-admin/options-general.php?page=notify-for-wordpress | 863 | 2.05 | 26.36 | 69.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/notify-wp/inc/api.class.php+10
Non-static method Notify_Plugin::get_options() should not be called statically
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- notify_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=notify-for-wordpress
- > Deprecated in wp-content/plugins/notify-wp/inc/api.class.php+10
Non-static method Notify_Plugin::get_options() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=notify-for-wordpress
- > Notice in wp-content/plugins/notify-wp/template/index.php+45
Trying to get property 'notification_token' of non-object
- > GET request to /wp-admin/options-general.php?page=notify-for-wordpress
- > Notice in wp-content/plugins/notify-wp/template/index.php+5
Trying to get property 'notification_message' of non-object
- > GET request to /wp-admin/options-general.php?page=notify-for-wordpress
- > Notice in wp-content/plugins/notify-wp/template/index.php+9
Trying to get property 'notification_embed' of non-object
- > GET request to /wp-admin/options-general.php?page=notify-for-wordpress
- > Notice in wp-content/plugins/notify-wp/template/index.php+10
Trying to get property 'notification_type_post' of non-object
- > GET request to /wp-admin/options-general.php?page=notify-for-wordpress
- > Notice in wp-content/plugins/notify-wp/template/index.php+11
Trying to get property 'notification_type_page' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notify-wp/inc/plugin.class.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/notify-wp/template/index.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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI ("")
notify-wp/notify-wordpress.php 92% from 13 tests
This is the main PHP file of "notify-wp" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("notify-wp.php" instead of "notify-wordpress.php")
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
Success! There were no dangerous files found in this plugin261 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 49 | 17 | 241 |
Markdown | 1 | 8 | 0 | 17 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
3 PNG files occupy 0.47MB with 0.32MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/input.png | 156.02KB | 34.99KB | ▼ 77.57% |
img/finish.png | 284.22KB | 105.91KB | ▼ 62.74% |
img/where.png | 39.80KB | 13.09KB | ▼ 67.11% |