83% lndr-page-builder

Code Review | Lndr

WordPress plugin Lndr scored83%from 54 tests.

About plugin

  • Plugin page: lndr-page-builder
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Nov 15, 2017
  • Latest release: Jan 30, 2020
  • Number of updates: 11
  • Update frequency: every 73.3 days
  • Top authors: xcf33 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /674 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.57MB] [CPU: ▼23.20ms] Passed 4 tests

Analyzing server-side resources used by Lndr
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.55 ▼8.32
Dashboard /wp-admin3.42 ▲0.0849.64 ▼13.48
Posts /wp-admin/edit.php3.54 ▲0.1849.13 ▼2.70
Add New Post /wp-admin/post-new.php3.30 ▼2.5939.73 ▼66.69
Media Library /wp-admin/upload.php3.34 ▲0.1236.06 ▼4.30
Lndr /wp-admin/options-general.php?page=lndr3.3134.66

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
lndr_version
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Lndr
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.39 ▼0.202.20 ▲0.0742.03 ▲2.43
Dashboard /wp-admin2,202 ▲215.60 ▼0.0784.03 ▼19.5839.51 ▼5.13
Posts /wp-admin/edit.php2,083 ▼172.00 ▼0.0337.02 ▼0.2131.75 ▼3.34
Add New Post /wp-admin/post-new.php1,548 ▲323.36 ▲0.18659.08 ▼33.6549.78 ▼17.09
Media Library /wp-admin/upload.php1,401 ▲14.25 ▼0.08100.45 ▼8.1944.99 ▼2.30
Lndr /wp-admin/options-general.php?page=lndr7832.1824.8124.62

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/lndr-page-builder/uninstall.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lndr-page-builder/lndr.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lndr-page-builder/public/lndr-page-template.php:86

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (screenshot1.png)
  • Screenshots: Add a description for screenshot #0 in lndr-page-builder/assets to your readme.txt
Please take inspiration from this readme.txt

lndr-page-builder/lndr.php 92% from 13 tests

"Lndr" version 1.2'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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lndr-page-builder.php" instead of "lndr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,017 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP113508351,971
JSON10046

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.33
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods41
▷ Static methods12.44%
▷ Public methods3687.80%
▷ Protected methods00.00%
▷ Private methods512.20%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
1 PNG file occupies 0.15MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png155.80KB37.08KB▼ 76.20%