77% adbase-ai-popup-growth

Code Review | SendSquared - Email Marketing, Lead Generation, Popup & Post Emailer

WordPress plugin SendSquared - Email Marketing, Lead Generation, Popup & Post Emailer scored77%from 54 tests.

About plugin

  • Plugin page: adbase-ai-popup-g...
  • Plugin version: 1.0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Apr 15, 2020
  • Latest release: Sep 20, 2021
  • Number of updates: 22
  • Update frequency: every 23.8 days
  • Top authors: adbaseai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.06MB] [CPU: ▼9.99ms] Passed 4 tests

A check of server-side resources used by SendSquared - Email Marketing, Lead Generation, Popup & Post Emailer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1035.79 ▼5.88
Dashboard /wp-admin3.31 ▼0.0040.41 ▼10.25
Posts /wp-admin/edit.php3.37 ▲0.0138.50 ▼6.92
Add New Post /wp-admin/post-new.php5.55 ▼0.3470.40 ▼16.89
Media Library /wp-admin/upload.php3.31 ▲0.0832.29 ▲0.29
SendSquared /wp-admin/options-general.php?page=ad-base-wordpress-modal3.2830.02

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

SendSquared - Email Marketing, Lead Generation, Popup & Post Emailer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲12613.41 ▼0.9717.17 ▲15.4540.84 ▼9.79
Dashboard /wp-admin2,210 ▲224.83 ▼0.07103.90 ▼8.6942.07 ▼5.04
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0633.27 ▼6.1532.23 ▼2.44
Add New Post /wp-admin/post-new.php1,536 ▼723.18 ▲4.93642.14 ▼14.8344.99 ▼10.59
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.1195.18 ▼2.1044.99 ▲0.57
SendSquared /wp-admin/options-general.php?page=ad-base-wordpress-modal9192.0623.0826.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ad-base-wordpress-modal
    • > Warning in wp-content/plugins/adbase-ai-popup-growth/adbase-ai-modal.php+76
    include_once(wp-content/plugins/adbase-ai-popup-growth//views/dashboard-notices.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=ad-base-wordpress-modal
    • > Warning in wp-content/plugins/adbase-ai-popup-growth/adbase-ai-modal.php+76
    include_once(): Failed opening 'wp-content/plugins/adbase-ai-popup-growth//views/dashboard-notices.php' for inclusion (include_path='.:/usr/share/php')

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/adbase-ai-popup-growth/views/sidebar.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/adbase-ai-popup-growth/views/dashboard_notices.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/adbase-ai-popup-growth/adbase-ai-modal.php:44
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/adbase-ai-popup-growth/views/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
You can take inspiration from this readme.txt

adbase-ai-popup-growth/adbase-ai-modal.php 77% from 13 tests

"SendSquared - Email Marketing, Lead Generation, Popup & Post Emailer" version 1.0.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("adbase-ai-popup-growth.php" instead of "adbase-ai-modal.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected889 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5100151889

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1372.22%
▷ Protected methods00.00%
▷ Private methods527.78%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin