Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.79ms] Passed 4 tests
Analyzing server-side resources used by Yournotify
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.06 ▼5.20 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.02 ▼3.66 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.51 ▲3.47 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 96.62 ▲9.73 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.48 ▲2.23 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
widget_yournotify_subscribe |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Yournotify
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲153 | 13.59 ▼0.84 | 4.98 ▲3.29 | 37.51 ▼6.03 |
Dashboard /wp-admin | 2,211 ▲20 | 4.86 ▼0.07 | 110.02 ▲9.39 | 40.41 ▼4.01 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.01 ▲0.00 | 38.95 ▲3.21 | 33.84 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.66 ▲0.25 | 597.08 ▼24.41 | 54.58 ▼4.38 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.21 ▲0.01 | 93.69 ▼8.02 | 42.98 ▼1.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_yournotify_subscribe
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/yournotify/yournotify.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yournotify/inc/yournotify-subscribe.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Widget settings), #2 (Widget frontend with basic design), #3 (Widget frontend with styled design)
yournotify/yournotify.php 92% from 13 tests
"Yournotify" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 202 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected381 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 83 | 181 |
JavaScript | 2 | 25 | 31 | 135 |
CSS | 1 | 4 | 0 | 54 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 11 | |
▷ Static methods | 4 | 36.36% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 9.30KB | 3.61KB | ▼ 61.12% |
assets/icon-256x256.png | 16.72KB | 5.88KB | ▼ 64.87% |