Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.35ms] Passed 4 tests
A check of server-side resources used by Elegant Subscription Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.27 ▼2.43 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.47 ▼6.71 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 42.71 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 82.74 ▼11.85 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 32.71 ▼4.41 |
Elegant Subscription Popup /wp-admin/options-general.php?page=elegant-subscription-form-settings | 3.23 | 31.15 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
elegant_subscription_form_settings |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Elegant Subscription Popup
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,991 ▲230 | 13.58 ▼0.65 | 9.73 ▲8.03 | 42.43 ▼0.27 |
Dashboard /wp-admin | 2,223 ▲45 | 5.84 ▲0.16 | 84.90 ▼17.76 | 37.63 ▼6.16 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.42 ▲0.38 | 39.57 ▲2.96 | 31.17 ▼4.76 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.70 ▲0.81 | 682.75 ▲12.38 | 39.54 ▼17.27 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.45 ▲0.17 | 103.71 ▼5.67 | 43.05 ▼4.70 |
Elegant Subscription Popup /wp-admin/options-general.php?page=elegant-subscription-form-settings | 1,334 | 4.53 | 118.48 | 64.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/elegant-subscription-popup/elegant-subscription-popup.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
elegant-subscription-popup/elegant-subscription-popup.php 92% from 13 tests
The principal PHP file in "Elegant Subscription Popup" v. 1.7.3 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 233 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
There were no executable files found in this plugin3,651 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 551 | 14 | 3,062 |
PHP | 3 | 129 | 49 | 443 |
SVG | 1 | 0 | 0 | 97 |
JavaScript | 2 | 16 | 1 | 49 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.91 |
▷ 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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 0.20KB | 0.21KB | 0.00% |