Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/1pointmail-optinbox-for-wp/1pointmail-optinbox.php+586
Methods with the same name as their class will not be constructors in a future version of PHP; opwmpUnsub has a deprecated constructor
Server metrics [RAM: ▼2.33MB] [CPU: ▼341.02ms] Passed 4 tests
This is a short check of server-side resources used by 1PointMail Subscription Box for Wordpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.47 | 4.26 ▼46.98 |
Dashboard /wp-admin | 2.06 ▼1.35 | 5.16 ▼29.73 |
Posts /wp-admin/edit.php | 2.06 ▼1.58 | 4.40 ▼34.94 |
Add New Post /wp-admin/post-new.php | 2.06 ▼4.91 | 4.38 ▼1,252.44 |
Media Library /wp-admin/upload.php | 2.06 ▼1.24 | 4.81 ▼29.33 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 3 new options
New tables |
---|
wp_onepointmail |
New WordPress options |
---|
widget_opmwp_widget_basicoptin |
onepointmail_database_version |
widget_opmwp_widget_unsub |
Browser metrics Passed 4 tests
Checking browser requirements for 1PointMail Subscription Box for Wordpress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,005 ▲261 | 16.33 ▲0.59 | 9.01 ▲2.17 | 1.86 ▼0.29 |
Dashboard /wp-admin | 2,997 ▲142 | 6.23 ▼0.04 | 120.69 ▼16.38 | 184.83 ▲21.97 |
Posts /wp-admin/edit.php | 2,710 ▲25 | 3.27 ▲0.04 | 63.41 ▼0.47 | 143.58 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,675 ▼23 | 15.96 ▼6.35 | 423.78 ▲16.68 | 158.43 ▼11.10 |
Media Library /wp-admin/upload.php | 1,717 ▲19 | 5.56 ▲0.04 | 140.40 ▼2.83 | 187.27 ▼5.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/1pointmail-optinbox-for-wp/1pointmail-optinbox.php+586
Methods with the same name as their class will not be constructors in a future version of PHP; opwmpUnsub has a deprecated constructor
- Zombie WordPress options were found after uninstall: 3 options
- widget_opmwp_widget_basicoptin
- widget_opmwp_widget_unsub
- onepointmail_database_version
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 no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/1pointmail-optinbox-for-wp/1pointmail-optinbox.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: 1pointinteractive, email, 1pointmail, subscription, mail...
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
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to 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
There were no executable 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
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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% |