Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/1pointmail-optinbox-for-wp/1pointmail-optinbox.php+648
Methods with the same name as their class will not be constructors in a future version of PHP; opmwpBasicOptin has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼55.39ms] Passed 4 tests
This is a short check of server-side resources used by 1PointMail Subscription Box for Wordpress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.17 | 8.20 ▼34.58 |
Dashboard /wp-admin | 2.31 ▼1.04 | 10.61 ▼54.17 |
Posts /wp-admin/edit.php | 2.31 ▼1.05 | 10.94 ▼39.15 |
Add New Post /wp-admin/post-new.php | 2.31 ▼3.58 | 10.78 ▼93.67 |
Media Library /wp-admin/upload.php | 2.31 ▼0.92 | 12.09 ▼21.94 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_onepointmail |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_opmwp_widget_basicoptin |
can_compress_scripts |
theysaidso_admin_options |
widget_opmwp_widget_unsub |
onepointmail_database_version |
Browser metrics Passed 4 tests
1PointMail Subscription Box for Wordpress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,006 ▲260 | 13.92 ▼0.73 | 7.50 ▲5.54 | 41.67 ▼1.53 |
Dashboard /wp-admin | 2,286 ▲83 | 5.86 ▼0.03 | 107.96 ▼4.17 | 80.06 ▲43.02 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.04 ▲0.01 | 40.98 ▲0.43 | 36.30 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.39 ▲5.91 | 672.78 ▲60.87 | 59.26 ▲1.73 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.31 ▲0.11 | 114.52 ▲1.69 | 49.98 ▲6.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in opmwpBasicOptin is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_opmwp_widget_basicoptin
- widget_theysaidso_widget
- widget_recent-posts
- onepointmail_database_version
- theysaidso_admin_options
- widget_opmwp_widget_unsub
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/1pointmail-optinbox-for-wp/1pointmail-optinbox.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
10 plugin tags: subscription, mail, 1pointmail, email, 1point...
1pointmail-optinbox-for-wp/1pointmail-optinbox.php 92% from 13 tests
The primary PHP file in "1PointMail Subscription Box for Wordpress" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("1pointmail-optinbox-for-wp.php" instead of "1pointmail-optinbox.php")
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
Everything looks great! No dangerous files found in this plugin591 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 138 | 144 | 516 |
JavaScript | 2 | 12 | 2 | 75 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.67 |
▷ 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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/opmwp-logo.png | 6.97KB | 2.63KB | ▼ 62.23% |
assets/screenshot-2.png | 5.46KB | 3.03KB | ▼ 44.52% |
assets/screenshot-1.png | 17.85KB | 8.22KB | ▼ 53.94% |