Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲4.07ms] Passed 4 tests
A check of server-side resources used by th23 Subscribe
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 44.20 ▲4.55 |
Dashboard /wp-admin | 3.88 ▲0.58 | 51.94 ▲0.42 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 50.68 ▲5.64 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 97.63 ▲7.21 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 40.23 ▲5.67 |
Your Subscriptions /wp-admin/users.php?page=th23-subscribe-manage | 3.79 | 37.16 |
th23 Subscribe /wp-admin/options-general.php?page=th23-subscribe | 3.71 | 39.14 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_th23_subscribe_subscriptions |
wp_th23_subscribe_notifications |
New WordPress options |
---|
widget_theysaidso_widget |
th23_subscribe_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_th23_subscribe_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for th23 Subscribe
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.59 ▼0.79 | 1.77 ▼0.03 | 40.72 ▼3.94 |
Dashboard /wp-admin | 2,211 ▲29 | 5.85 ▲0.96 | 96.87 ▼5.19 | 39.37 ▼7.84 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▼0.00 | 39.11 ▲2.39 | 35.66 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,539 ▲3 | 23.03 ▼0.29 | 579.70 ▼17.14 | 56.04 ▲11.56 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.22 ▲0.07 | 97.57 ▲0.34 | 41.82 ▼0.92 |
Your Subscriptions /wp-admin/users.php?page=th23-subscribe-manage | 780 | 2.07 | 28.88 | 28.06 |
th23 Subscribe /wp-admin/options-general.php?page=th23-subscribe | 1,201 | 2.22 | 27.04 | 48.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_th23_subscribe_subscriptions
- wp_th23_subscribe_notifications
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_th23_subscribe_widget
- widget_recent-comments
- th23_subscribe_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
th23-subscribe/th23-subscribe.php Passed 13 tests
The main PHP script in "th23 Subscribe" version 3.2.0 is automatically included on every request by WordPress
136 characters long description:
Subscribe for email notifactions upon new posts and comments. Easy way keep registered users and visitors informed about latest updates.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,405 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 371 | 449 | 2,276 |
PO File | 1 | 212 | 276 | 769 |
CSS | 2 | 10 | 21 | 233 |
JavaScript | 2 | 16 | 23 | 127 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 113.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 244.00 |
Average method complexity | 6.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 82 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/th23-subscribe-horizontal.png | 6.44KB | 1.84KB | ▼ 71.45% |
img/th23-subscribe-square.png | 8.45KB | 1.54KB | ▼ 81.81% |