83% landing-lion-landing-pages

Code Review | Landing Lion Landing Pages

WordPress plugin Landing Lion Landing Pages scored 83% from 54 tests.

About plugin

  • Plugin page: landing-lion-land...
  • Plugin version: 0.4.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.5-4.7.5
  • WordPress version: 6.3.1
  • First release: Jun 3, 2017
  • Latest release: Jul 9, 2018
  • Number of updates: 16
  • Update frequency: every 25.1 days
  • Top authors: miccarlson4 (75%)craigrmccown (31.25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,411 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▲6.41ms] Passed 4 tests

A check of server-side resources used by Landing Lion Landing Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5142.51 ▲5.16
Dashboard /wp-admin3.68 ▲0.3753.52 ▲9.91
Posts /wp-admin/edit.php3.73 ▲0.3755.39 ▲13.89
Add New Post /wp-admin/post-new.php6.20 ▲0.3199.69 ▲5.49
Media Library /wp-admin/upload.php3.54 ▲0.3139.87 ▲5.07

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 11 new options
New tables
wp_ll_page_mappings
New WordPress options
ll-proxy-error-message
theysaidso_admin_options
ll-routes-cache
ll-client-domain
db_upgraded
widget_recent-comments
ll-domain-id
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Landing Lion Landing Pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲8213.33 ▼1.334.63 ▲2.6341.95 ▲0.44
Dashboard /wp-admin2,245 ▲574.87 ▼1.02110.89 ▼5.7644.93 ▲0.59
Posts /wp-admin/edit.php2,128 ▲392.14 ▲0.1442.14 ▲6.2738.88 ▲8.33
Add New Post /wp-admin/post-new.php1,543 ▲2923.08 ▲5.67648.35 ▲6.6757.82 ▲16.81
Media Library /wp-admin/upload.php1,427 ▲394.20 ▼0.0295.78 ▼0.2943.89 ▲1.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function LandingLionWP\\Views\\add_action() in wp-content/plugins/landing-lion-landing-pages/App/Views/LLSettingsPage.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function LandingLionWP\\Views\\add_action() in wp-content/plugins/landing-lion-landing-pages/App/Views/LLSettingsPage.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
You can look at the official readme.txt

landing-lion-landing-pages/landing-lion-wpp.php 85% from 13 tests

The principal PHP file in "Landing Lion Landing Pages" v. 0.4.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 192 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("landing-lion-landing-pages.php" instead of "landing-lion-wpp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,494 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10232161,284
JavaScript1253171
CSS29339

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.24
Average class complexity13.75
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods69
▷ Static methods4362.32%
▷ Public methods6391.30%
▷ Protected methods00.00%
▷ Private methods68.70%
Functions26
▷ Named functions1973.08%
▷ Anonymous functions726.92%
Constants29
▷ Global constants1034.48%
▷ Class constants1965.52%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected