78% landingi-landing-pages

Code Review | Landingi Landing Pages

WordPress plugin Landingi Landing Pages scored78%from 54 tests.

About plugin

  • Plugin page: landingi-landing-...
  • Plugin version: 3.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.0
  • WordPress version: 6.3.1
  • First release: Oct 26, 2017
  • Latest release: Oct 20, 2022
  • Number of updates: 69
  • Update frequency: every 26.5 days
  • Top authors: landingi (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

3,000+ active /51,181 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▲3.78ms] Passed 4 tests

Server-side resources used by Landingi Landing Pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2043.46 ▲3.47
Dashboard /wp-admin3.50 ▲0.2049.03 ▲1.85
Posts /wp-admin/edit.php3.60 ▲0.2552.20 ▲7.21
Add New Post /wp-admin/post-new.php6.08 ▲0.2092.59 ▲2.87
Media Library /wp-admin/upload.php3.42 ▲0.2039.72 ▲6.92
Available Landings /wp-admin/admin.php?page=landingi4.27495.84
Imported Landings /wp-admin/edit.php?post_type=landing3.4542.81
Settings /wp-admin/admin.php?page=landingi_settings3.6434.51

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 776 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
landingi_plugin_token
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Landingi Landing Pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8414.47 ▲0.101.89 ▲0.2744.36 ▲0.31
Dashboard /wp-admin2,239 ▲685.82 ▲0.0196.75 ▼5.9780.08 ▲27.29
Posts /wp-admin/edit.php2,116 ▲272.02 ▲0.0138.71 ▲3.3739.43 ▲3.28
Add New Post /wp-admin/post-new.php1,539 ▲2517.49 ▲0.04702.20 ▼7.6553.11 ▼10.60
Media Library /wp-admin/upload.php1,415 ▲274.23 ▲0.0395.79 ▼12.4380.13 ▲34.12
Available Landings /wp-admin/admin.php?page=landingi8082.0124.7625.65
Imported Landings /wp-admin/edit.php?post_type=landing1,0881.9332.9133.17
Settings /wp-admin/admin.php?page=landingi_settings8292.0324.2625.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • landingi_plugin_token
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=landingi_settings
    • > Warning in wp-content/plugins/landingi-landing-pages/src/Framework/Http/Response.php+45
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 329× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/landingi-landing-pages/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/landingi-landing-pages/vendor/twig/twig/src/Node/SandboxNode.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/landingi-landing-pages/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\odeVisitor\\AbstractNodeVisitor' not found in wp-content/plugins/landingi-landing-pages/vendor/twig/twig/src/Profiler/NodeVisitor/ProfilerNodeVisitor.php:30
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\\Loader\\LoaderInterface' not found in wp-content/plugins/landingi-landing-pages/vendor/twig/twig/src/Loader/FilesystemLoader.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/landingi-landing-pages/vendor/twig/twig/src/Node/Expression/ConstantExpression.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/landingi-landing-pages/vendor/twig/twig/src/Node/BodyNode.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/landingi-landing-pages/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Unary\\AbstractUnary' not found in wp-content/plugins/landingi-landing-pages/vendor/twig/twig/src/Node/Expression/Unary/PosUnary.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\CallExpression' not found in wp-content/plugins/landingi-landing-pages/vendor/twig/twig/src/Node/Expression/FilterExpression.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: landing page, a b testing, landing page import, conversion page, landing page platform...

landingi-landing-pages/landingi-plugin.php 77% from 13 tests

Analyzing the main PHP file in "Landingi Landing Pages" version 3.0.2
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 328 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("landingi-landing-pages.php" instead of "landingi-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin55,919 lines of code in 702 files:
LanguageFilesBlank linesComment linesLines of code
PHP6576,49011,59650,002
Markdown191,28203,708
JSON15001,812
YAML7723277
Twig320107
reStructuredText19513

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity6.04
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces51
Interfaces54
Traits5
Classes566
▷ Abstract classes213.71%
▷ Concrete classes54596.29%
▷ Final classes437.89%
Methods1,946
▷ Static methods21210.89%
▷ Public methods1,61582.99%
▷ Protected methods1588.12%
▷ Private methods1738.89%
Functions341
▷ Named functions22265.10%
▷ Anonymous functions11934.90%
Constants159
▷ Global constants148.81%
▷ Class constants14591.19%
▷ Public constants13391.72%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
resources/images/landingi_logo.png2.29KB0.25KB▼ 88.95%