84% optinopoli

Code Review | WP Optin Plugin by optinopoli™ — Best Wordpress Plugin for Email Capture & Lead Generation

WordPress plugin WP Optin Plugin by optinopoli™ — Best Wordpress Plugin for Email Capture & Lead Generation scored84%from 54 tests.

About plugin

  • Plugin page: optinopoli
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.0
  • WordPress version: 6.3.1
  • First release: Feb 28, 2018
  • Latest release: Dec 14, 2018
  • Number of updates: 44
  • Update frequency: every 6.6 days
  • Top authors: optinopoli (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.73ms] Passed 4 tests

A check of server-side resources used by WP Optin Plugin by optinopoli™ — Best Wordpress Plugin for Email Capture & Lead Generation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.06 ▼10.74
Dashboard /wp-admin3.32 ▲0.0248.51 ▼4.25
Posts /wp-admin/edit.php3.37 ▲0.0245.72 ▼1.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.57 ▼1.92
Media Library /wp-admin/upload.php3.24 ▲0.0135.68 ▼2.02
Optinopoli /wp-admin/options-general.php?page=optinopoli/optinopoli.php3.2130.43

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Optin Plugin by optinopoli™ — Best Wordpress Plugin for Email Capture & Lead Generation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.12 ▼0.481.78 ▼0.2144.96 ▲1.68
Dashboard /wp-admin2,199 ▲225.63 ▲0.1184.44 ▼7.6142.37 ▼1.01
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0236.23 ▼0.1739.73 ▲3.43
Add New Post /wp-admin/post-new.php1,532 ▲423.08 ▼0.01658.84 ▼5.2954.71 ▲0.87
Media Library /wp-admin/upload.php1,401 ▲74.15 ▼0.05101.95 ▼6.9047.54 ▲2.29
Optinopoli /wp-admin/options-general.php?page=optinopoli/optinopoli.php8252.0026.9333.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optinopoli/inc/options.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/optinopoli/optinopoli.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

optinopoli/optinopoli.php 92% from 13 tests

Analyzing the main PHP file in "WP Optin Plugin by optinopoli™ — Best Wordpress Plugin for Email Capture & Lead Generation" version 1.1.4
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 285 characters long)

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 plugin60 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2182560

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin