78% lisa-popup

Code Review | Lisa Popup

WordPress plugin Lisa Popup scored78%from 54 tests.

About plugin

  • Plugin page: lisa-popup
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Nov 23, 2017
  • Latest release: Nov 23, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: kamrul0424 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /547 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.44MB] [CPU: ▲2.25ms] Passed 4 tests

Server-side resources used by Lisa Popup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2941.41 ▲2.22
Dashboard /wp-admin3.82 ▲0.5249.92 ▲2.60
Posts /wp-admin/edit.php3.84 ▲0.4952.94 ▲7.60
Add New Post /wp-admin/post-new.php6.41 ▲0.5394.73 ▼1.63
Media Library /wp-admin/upload.php3.68 ▲0.4538.93 ▲5.80
Add New popup /wp-admin/post-new.php?post_type=fpopup4.0143.07
Lisa Popup /wp-admin/edit.php?post_type=fpopup3.7938.10

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 359 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
recovery_mode_email_last_sent
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lisa Popup
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲20614.21 ▼0.197.86 ▲6.1038.86 ▼0.52
Dashboard /wp-admin2,241 ▲504.89 ▼1.0197.98 ▼10.6936.91 ▼3.11
Posts /wp-admin/edit.php2,129 ▲402.06 ▲0.0641.73 ▲4.1235.28 ▲0.44
Add New Post /wp-admin/post-new.php1,544 ▲1123.28 ▼0.22638.06 ▼9.3351.53 ▼6.53
Media Library /wp-admin/upload.php1,426 ▲354.24 ▲0.0697.12 ▲2.9339.92 ▼0.40
Add New popup /wp-admin/post-new.php?post_type=fpopup1,3041.537.1930.06
Lisa Popup /wp-admin/edit.php?post_type=fpopup1,1082.0033.3028.53

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=fpopup
    • > Compile error in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/types/CMB2_Type_Colorpicker.php+35
    Declaration of CMB2_Type_Colorpicker::render() must be compatible with CMB2_Type_Text::render($args = Array)

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
Please fix the following
  • 41× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/types/CMB2_Type_Text_Time.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/types/CMB2_Type_Taxonomy_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/types/CMB2_Type_File_List.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/lisa-popup/inc/meta-box/lib/includes/rest-api/CMB2_REST_Controller.php:4

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)
There were no browser issues found

Optimizations

Plugin configuration 96% 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
2 plugin tags: contact form 7, popup

lisa-popup/form_popup.php 92% from 13 tests

"Lisa Popup" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("lisa-popup.php" instead of "form_popup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected46,104 lines of code in 213 files:
LanguageFilesBlank linesComment linesLines of code
PO File12013,78217,88231,544
PHP561,7604,6836,033
CSS141,0061,0384,460
JavaScript58064412,439
Sass13238251,154
Markdown51710474

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.54
▷ Minimum class complexity1.00
▷ Maximum class complexity141.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes63
▷ Abstract classes812.70%
▷ Concrete classes5587.30%
▷ Final classes00.00%
Methods432
▷ Static methods6715.51%
▷ Public methods36183.56%
▷ Protected methods6815.74%
▷ Private methods30.69%
Functions43
▷ Named functions4297.67%
▷ Anonymous functions12.33%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/meta-box/lib/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
inc/meta-box/lib/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
inc/meta-box/lib/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
inc/meta-box/lib/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
inc/meta-box/lib/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%