83% landing-page-creator-with-custom-posts

Code Review | Landing Page Creator With Custom Posts

WordPress plugin Landing Page Creator With Custom Posts scored83%from 54 tests.

About plugin

  • Plugin page: landing-page-crea...
  • Plugin version: 0.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.23-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: May 27, 2019
  • Number of updates: 14
  • Update frequency: every 66.4 days
  • Top authors: iranalves85 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,319 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Landing Page Creator With Custom Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.74 ▼11.65
Dashboard /wp-admin3.38 ▲0.0347.88 ▼15.28
Posts /wp-admin/edit.php3.49 ▲0.1351.88 ▲3.18
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.63 ▼12.26
Media Library /wp-admin/upload.php3.30 ▲0.0740.35 ▲1.99

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Landing Page Creator With Custom Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.32 ▼0.914.26 ▲2.5940.84 ▲3.34
Dashboard /wp-admin2,216 ▲335.77 ▲0.8698.07 ▼14.9940.06 ▼5.64
Posts /wp-admin/edit.php2,104 ▲122.01 ▲0.0139.39 ▲2.0538.20 ▼0.32
Add New Post /wp-admin/post-new.php1,546 ▲1023.49 ▲0.41658.18 ▲6.2954.83 ▼14.36
Media Library /wp-admin/upload.php1,404 ▲164.22 ▲0.1598.20 ▼16.8047.24 ▲0.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Good news, no errors were detected

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
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/landing-page-creator-with-custom-posts/landingpage-creator-with-custom-posts.php
    • > /wp-content/plugins/landing-page-creator-with-custom-posts/templates-parts/navigation.php
    • > /wp-content/plugins/landing-page-creator-with-custom-posts/landingpage_lpccp_admin.php
    • > /wp-content/plugins/landing-page-creator-with-custom-posts/landingpage_lpccp_template.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (45 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Requires php: Version not formatted correctly
The official readme.txt might help

landing-page-creator-with-custom-posts/landingpage-creator-with-custom-posts.php 92% from 13 tests

The principal PHP file in "Landing Page Creator With Custom Posts" v. 0.3.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("landing-page-creator-with-custom-posts.php" instead of "landingpage-creator-with-custom-posts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,187 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS1481997
PHP4308385986
PO File188105198
JavaScript1306

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity44.50
▷ Minimum class complexity19.00
▷ Maximum class complexity70.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods2266.67%
▷ Protected methods1133.33%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/section-icon.png0.96KB0.13KB▼ 86.83%
assets/images/landingpage-icon.png0.96KB0.13KB▼ 86.97%