Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.95ms] Passed 4 tests
Analyzing server-side resources used by Notifications
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.92 ▼5.21 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.45 ▼3.86 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 53.65 ▲4.01 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 95.57 ▼4.94 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 37.00 ▲2.23 |
Options /wp-admin/edit.php?post_type=notf_notifications&page=notf_settings | 3.28 | 32.83 |
Add New /wp-admin/post-new.php?post_type=notf_notifications | 3.33 | 42.42 |
Notifications /wp-admin/edit.php?post_type=notf_notifications | 3.34 | 40.00 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Notifications
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.17 ▼0.20 | 2.00 ▲0.38 | 45.75 ▲3.72 |
Dashboard /wp-admin | 2,226 ▲64 | 5.55 ▼0.11 | 85.29 ▼6.64 | 38.52 ▼5.77 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 1.96 ▼0.02 | 36.31 ▼1.06 | 35.91 ▲4.01 |
Add New Post /wp-admin/post-new.php | 1,569 ▲55 | 18.11 ▼5.11 | 644.59 ▼51.42 | 54.27 ▼3.88 |
Media Library /wp-admin/upload.php | 1,428 ▲34 | 4.24 ▲0.05 | 96.36 ▼13.99 | 42.08 ▼3.30 |
Options /wp-admin/edit.php?post_type=notf_notifications&page=notf_settings | 1,002 | 2.00 | 25.64 | 45.00 |
Add New /wp-admin/post-new.php?post_type=notf_notifications | 1,436 | 2.47 | 48.47 | 68.56 |
Notifications /wp-admin/edit.php?post_type=notf_notifications | 1,098 | 1.96 | 30.66 | 30.94 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/notifications/notifications.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/notifications/notifications.php:18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were not plugin tags detected
notifications/notifications.php Passed 13 tests
The entry point to "Notifications" version 1.1.3 is a PHP file that has certain tags in its header comment area
56 characters long description:
Easy, customizable notifications for your WordPress site
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
Good job! No executable or dangerous file extensions detected545 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 183 | 344 |
CSS | 1 | 0 | 0 | 163 |
Markdown | 1 | 24 | 0 | 38 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 20 | |
▷ Named functions | 20 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/notification32.png | 2.14KB | 1.27KB | ▼ 40.72% |
img/notification16-inv.png | 1.42KB | 0.59KB | ▼ 58.26% |
img/notification16.png | 1.41KB | 0.58KB | ▼ 58.71% |