10% 1pointmail-optinbox-for-wp

Code Review | 1PointMail Subscription Box for Wordpress

WordPress plugin 1PointMail Subscription Box for Wordpress scored 10% from 54 tests.

About plugin

  • Plugin page: 1pointmail-optinb...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 5.9.2
  • First release: Sep 24, 2014
  • Latest release: Feb 3, 2015
  • Number of updates: 6
  • Update frequency: every 22.0 days
  • Top authors: 1PointInteractive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,104 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.474.26 ▼46.98
Dashboard /wp-admin2.06 ▼1.355.16 ▼29.73
Posts /wp-admin/edit.php2.06 ▼1.584.40 ▼34.94
Add New Post /wp-admin/post-new.php2.06 ▼4.914.38 ▼1,252.44
Media Library /wp-admin/upload.php2.06 ▼1.244.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,005 ▲26116.33 ▲0.599.01 ▲2.171.86 ▼0.29
Dashboard /wp-admin2,997 ▲1426.23 ▼0.04120.69 ▼16.38184.83 ▲21.97
Posts /wp-admin/edit.php2,710 ▲253.27 ▲0.0463.41 ▼0.47143.58 ▼1.11
Add New Post /wp-admin/post-new.php1,675 ▼2315.96 ▼6.35423.78 ▲16.68158.43 ▼11.10
Media Library /wp-admin/upload.php1,717 ▲195.56 ▲0.04140.40 ▼2.83187.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:
LanguageFilesBlank linesComment linesLines of code
PHP3138144516
JavaScript212275

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 code0.26
Average class complexity9.00
▷ Minimum class complexity5.00
▷ Maximum class complexity13.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/opmwp-logo.png6.97KB2.63KB▼ 62.23%
assets/screenshot-2.png5.46KB3.03KB▼ 44.52%
assets/screenshot-1.png17.85KB8.22KB▼ 53.94%