Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/vervemail-subscribe/main.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; wp_vervemail has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼57.53ms] Passed 4 tests
Server-side resources used by Vervemail Subscriber
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 5.64 ▼34.76 |
Dashboard /wp-admin | 2.17 ▼1.13 | 5.86 ▼48.74 |
Posts /wp-admin/edit.php | 2.17 ▼1.18 | 6.27 ▼49.14 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.71 | 7.23 ▼97.48 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 6.23 ▼33.09 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_wp_vervemail |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Vervemail Subscriber
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲138 | 13.57 ▼0.79 | 12.86 ▲10.98 | 43.48 ▲1.41 |
Dashboard /wp-admin | 2,195 ▲21 | 5.59 ▲0.02 | 88.76 ▼6.82 | 42.88 ▼4.53 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.01 | 39.15 ▼0.83 | 37.22 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.01 ▼0.08 | 682.54 ▲5.68 | 52.30 ▼30.26 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.05 | 108.02 ▲4.43 | 43.90 ▼1.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/vervemail-subscribe/main.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; wp_vervemail has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_wp_vervemail
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/vervemail-subscribe/thanks-modal.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vervemail-subscribe/main.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: sign up, subscribe, register, widget, vervemail
vervemail-subscribe/main.php 92% from 13 tests
The main file in "Vervemail Subscriber" v. 2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("vervemail-subscribe.php" instead of "main.php")
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 detected916 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 179 | 28 | 612 |
CSS | 1 | 7 | 8 | 291 |
JavaScript | 2 | 7 | 16 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 54 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.26% |
Functions | 1 | |
▷ Named functions | 1 | 100.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 1.88KB | 1.13KB | ▼ 40.09% |