Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.20ms] Passed 4 tests
A check of server-side resources used by jQuery Notify
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.81 ▼3.89 |
Dashboard /wp-admin | 3.40 ▲0.10 | 43.34 ▼3.43 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 44.82 ▼3.93 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 89.60 ▼1.53 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.01 ▲0.95 |
jQuery Notify /wp-admin/options-general.php?page=jqn-options | 3.29 | 31.24 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
jqn_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for jQuery Notify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.59 ▼0.79 | 1.93 ▼0.19 | 42.97 ▼2.73 |
Dashboard /wp-admin | 2,213 ▲22 | 4.87 ▼0.18 | 98.39 ▼1.21 | 40.70 ▼1.44 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.06 | 38.76 ▼0.11 | 33.80 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,552 ▲32 | 18.11 ▼5.14 | 612.31 ▼31.30 | 62.71 ▲11.01 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.28 ▲0.04 | 94.61 ▼3.70 | 41.81 ▼0.15 |
jQuery Notify /wp-admin/options-general.php?page=jqn-options | 1,078 | 2.02 | 38.66 | 33.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- jqn_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'jQuery_Notify' not found in wp-content/plugins/jquery-notify/jqn-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jquery-notify/jquery-notify.php:38
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=jqn-options
- > Console-api (warning) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'mozilla')" "TypeError: Cannot read properties of undefined (reading 'mozilla')\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=jqn-options:235:19)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:26990)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=jqn-options
- > Javascript (severe) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'mozilla')
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The plugin in action, using the "success" style), #2 (The plugin in action, using the "default" style), #3 (The plugin in action, using the "error" style)
jquery-notify/jquery-notify.php Passed 13 tests
"jQuery Notify" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
77 characters long description:
An attractive, lightweight, and highly configurable jQuery notification pane.
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
Good job! No executable or dangerous file extensions detected582 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 145 | 112 | 408 |
CSS | 2 | 19 | 0 | 148 |
JavaScript | 1 | 6 | 3 | 24 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
close.png | 0.17KB | 0.11KB | ▼ 37.99% |
screenshot-1.png | 25.36KB | 11.80KB | ▼ 53.49% |
screenshot-3.png | 25.08KB | 11.86KB | ▼ 52.72% |
screenshot-2.png | 25.95KB | 11.97KB | ▼ 53.86% |