74% wp-popup-optin

Code Review | WP Responsive Popup + Optin

WordPress plugin WP Responsive Popup + Optin scored74%from 54 tests.

About plugin

  • Plugin page: wp-popup-optin
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2015
  • Latest release: Jan 13, 2016
  • Number of updates: 25
  • Update frequency: every 11.4 days
  • Top authors: sphex1987 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,097 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼18.41ms] Passed 4 tests

A check of server-side resources used by WP Responsive Popup + Optin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.46 ▼4.25
Dashboard /wp-admin3.12 ▼0.1827.75 ▼21.99
Posts /wp-admin/edit.php3.26 ▼0.1032.74 ▼18.70
Add New Post /wp-admin/post-new.php5.50 ▼0.3969.68 ▼28.71
Media Library /wp-admin/upload.php3.21 ▼0.0231.59 ▲0.18
Email List /wp-admin/admin.php?page=wpo_email_list3.2632.23
Settings /wp-admin/admin.php?page=wpo_manage_settings3.3340.23
WP Popup+Optin /wp-admin/admin.php?page=WPPopupOptin3.3338.66

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 48 new files
Database: 1 new table, 6 new options
New tables
wp_wpo_email_list
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Responsive Popup + Optin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,078 ▲30714.02 ▼0.539.59 ▲7.4338.56 ▼5.28
Dashboard /wp-admin2,240 ▲525.88 ▲0.98100.21 ▼16.1940.06 ▼1.97
Posts /wp-admin/edit.php2,120 ▲312.00 ▼0.0435.26 ▼0.8031.90 ▼1.00
Add New Post /wp-admin/post-new.php1,539 ▲2517.65 ▼0.16653.02 ▲5.7161.06 ▲4.35
Media Library /wp-admin/upload.php1,413 ▲254.21 ▲0.0594.05 ▼9.3440.45 ▼3.68
Email List /wp-admin/admin.php?page=wpo_email_list8172.1823.7626.42
Settings /wp-admin/admin.php?page=wpo_manage_settings2,1376.60135.3484.67
WP Popup+Optin /wp-admin/admin.php?page=WPPopupOptin2,1346.72131.1586.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_wpo_email_list
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-popup-optin/wpo_email_list.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-popup-optin/wpo_admin_page.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-popup-optin/wp-popup-optin.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: email marketing, list, optin, popup, responsive popup...

wp-popup-optin/wp-popup-optin.php 85% from 13 tests

"WP Responsive Popup + Optin" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 298 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,916 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript65821431,725
CSS59554643
PHP311637533
SQL191815

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.49MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
fancybox/fancy_loading.png9.96KB6.30KB▼ 36.67%
fancybox/fancy_title_over.png0.07KB0.09KB0.00%
images/left-image.png4.44KB0.29KB▼ 93.42%
fancybox/fancy_nav_left.png1.41KB1.64KB0.00%
fancybox/fancy_shadow_sw.png0.33KB0.48KB0.00%