84% ladipage

Code Review | LadiApp: Landing Page, PopupX, Marketing Automation, Affiliate Marketing...

WordPress plugin LadiApp: Landing Page, PopupX, Marketing Automation, Affiliate Marketing... scored84%from 54 tests.

About plugin

  • Plugin page: ladipage
  • Plugin version: 4.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.8.2
  • WordPress version: 6.3.1
  • First release: Jul 19, 2018
  • Latest release: Nov 3, 2023
  • Number of updates: 68
  • Update frequency: every 28.4 days
  • Top authors: binhnguyenplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

5,000+ active /44,709 total downloads

Benchmarks

Plugin footprint 82% 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 gracefully, with no errors

Server metrics [RAM: ▼0.21MB] [CPU: ▼14.94ms] Passed 4 tests

An overview of server-side resources used by LadiApp: Landing Page, PopupX, Marketing Automation, Affiliate Marketing...
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.80 ▼0.6615.77 ▼25.55
Dashboard /wp-admin3.34 ▼0.0154.04 ▼9.84
Posts /wp-admin/edit.php3.16 ▼0.1929.00 ▼18.45
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.57 ▼5.92
Media Library /wp-admin/upload.php3.26 ▲0.0337.69 ▲2.83

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/ladipage/" and "wp-content/uploads/"
    • (new file) wp-content/ladipage/.empty
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for LadiApp: Landing Page, PopupX, Marketing Automation, Affiliate Marketing...
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.31 ▼0.042.03 ▲0.1844.37 ▲1.28
Dashboard /wp-admin2,207 ▲265.60 ▼0.0786.74 ▼22.0641.77 ▼0.09
Posts /wp-admin/edit.php2,163 ▲631.98 ▼0.0533.72 ▲0.2736.00 ▲2.65
Add New Post /wp-admin/post-new.php1,542 ▲724.03 ▲5.87612.32 ▼36.5943.31 ▼27.76
Media Library /wp-admin/upload.php1,412 ▲94.20 ▲0.0294.63 ▲0.0641.41 ▼1.22

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to get property 'posts' of non-object in wp-content/plugins/ladipage/null-template.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/ladipage/null-template.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ladipage/ladipage.php:16
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ladipage/null-template.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ladipage/add-template.php:163

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: landing page, page builder, ladichat, ladiflow, builder...

ladipage/ladipage.php Passed 13 tests

The main file in "LadiApp: Landing Page, PopupX, Marketing Automation, Affiliate Marketing..." v. 4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
Connector to access content from LadiPage service. (LadiPage: Landing Page Platform for Advertiser)

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
Good job! No executable or dangerous file extensions detected2,059 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3218702,059

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity123.50
▷ Minimum class complexity8.00
▷ Maximum class complexity239.00
Average method complexity6.98
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3995.12%
▷ Protected methods12.44%
▷ Private methods12.44%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin