Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼7.17ms] Passed 4 tests
Analyzing server-side resources used by MS-Subscriber
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 42.87 ▼7.69 |
Dashboard /wp-admin | 3.57 ▲0.27 | 51.67 ▼2.00 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 52.36 ▲3.01 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 88.93 ▼17.21 |
Media Library /wp-admin/upload.php | 3.50 ▲0.26 | 37.07 ▼1.79 |
MS-plugins /wp-admin/admin.php?page=ms-plugins | 3.50 | 34.88 |
MS-Subscriber /wp-admin/admin.php?page=ms-subscriber | 3.56 | 37.76 |
Server storage [IO: ▲3.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 55 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_ms_subscriber_templates |
wp_ms_subscriber_options |
wp_ms_subscriber |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by MS-Subscriber
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲223 | 14.19 ▼0.10 | 13.58 ▲11.68 | 41.04 ▼5.83 |
Dashboard /wp-admin | 2,234 ▲46 | 4.86 ▼0.19 | 111.55 ▼7.73 | 40.99 ▼7.81 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.01 ▼0.06 | 39.46 ▲2.23 | 33.99 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,538 ▲4 | 17.50 ▼5.80 | 601.03 ▼67.25 | 50.28 ▼9.98 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.25 ▲0.08 | 97.93 ▼3.43 | 43.26 ▲1.81 |
MS-plugins /wp-admin/admin.php?page=ms-plugins | 982 | 2.45 | 58.96 | 61.81 |
MS-Subscriber /wp-admin/admin.php?page=ms-subscriber | 2,652 | 7.93 | 204.13 | 40.68 |
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
- The uninstall procedure failed, leaving 3 tables in the database
- wp_ms_subscriber_options
- wp_ms_subscriber
- wp_ms_subscriber_templates
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=ms-subscriber
- > Notice in wp-content/plugins/ms-subscriber-subscribe-to-news/templates/admin-page.php+180
Undefined variable: isTimeWeb
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 items
- 3× 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/ms-subscriber-subscribe-to-news/ms-subscriber.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function MS_WEB\\MS_SUBSCRIBER\\current_user_can() in wp-content/plugins/ms-subscriber-subscribe-to-news/templates/admin-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function MS_WEB\\MS_SUBSCRIBER\\current_user_can() in wp-content/plugins/ms-subscriber-subscribe-to-news/templates/main.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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: Please add descriptions for these screenshots #0, #2, #3 in ms-subscriber-subscribe-to-news/assets to your readme.txt
ms-subscriber-subscribe-to-news/ms-subscriber.php 85% from 13 tests
The main file in "MS-Subscriber" v. 1.2.91 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ms-subscriber-subscribe-to-news.php" instead of "ms-subscriber.php")
- Description: Keep the plugin description shorter than 140 characters (currently 540 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected23,120 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 1,631 | 62 | 11,729 |
JavaScript | 18 | 2,127 | 1,932 | 9,933 |
PHP | 8 | 193 | 127 | 1,458 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 49.67 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 34 | 82.93% |
▷ Public methods | 39 | 95.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.88% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.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.16MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/email.png | 79.86KB | 20.77KB | ▼ 73.99% |
public/images/squarel.png | 38.49KB | 12.85KB | ▼ 66.62% |
admin/images/plus-minus-small-thin.png | 17.82KB | 0.14KB | ▼ 99.22% |
images/tiger-50x50.png | 25.76KB | 2.96KB | ▼ 88.51% |