10% 1pointmail-optinbox-for-wp

Code Review | 1PointMail Subscription Box for Wordpress

WordPress plugin 1PointMail Subscription Box for Wordpress scored10%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: 6.3.1
  • 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,324 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼1.178.20 ▼34.58
Dashboard /wp-admin2.31 ▼1.0410.61 ▼54.17
Posts /wp-admin/edit.php2.31 ▼1.0510.94 ▼39.15
Add New Post /wp-admin/post-new.php2.31 ▼3.5810.78 ▼93.67
Media Library /wp-admin/upload.php2.31 ▼0.9212.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
New WordPress options

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,006 ▲26013.92 ▼0.737.50 ▲5.5441.67 ▼1.53
Dashboard /wp-admin2,286 ▲835.86 ▼0.03107.96 ▼4.1780.06 ▲43.02
Posts /wp-admin/edit.php2,116 ▲162.04 ▲0.0140.98 ▲0.4336.30 ▼0.25
Add New Post /wp-admin/post-new.php1,538 ▲1223.39 ▲5.91672.78 ▲60.8759.26 ▲1.73
Media Library /wp-admin/upload.php1,416 ▲254.31 ▲0.11114.52 ▲1.6949.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


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:
LanguageFilesBlank linesComment linesLines of code

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 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
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions15100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
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%