78% landing-pages-and-domain-aliases

Code Review | Landing pages and Domain aliases for Wordpress

WordPress plugin Landing pages and Domain aliases for Wordpress scored 78% from 54 tests.

About plugin

  • Plugin page: landing-pages-and...
  • Plugin version: 0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2018
  • Latest release: Nov 4, 2022
  • Number of updates: 10
  • Update frequency: every 176.4 days
  • Top authors: wordpressdrift (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active / 4,248 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼1.69ms] Passed 4 tests

Analyzing server-side resources used by Landing pages and Domain aliases for Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.30 ▼2.37
Dashboard /wp-admin3.41 ▲0.1146.37 ▲0.23
Posts /wp-admin/edit.php3.53 ▲0.1750.31 ▼1.71
Add New Post /wp-admin/post-new.php5.99 ▲0.1187.08 ▼2.90
Media Library /wp-admin/upload.php3.34 ▲0.1137.32 ▲3.72
Landing pages and Aliases /wp-admin/options-general.php?page=wordpress_landing_pages3.3132.87

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Landing pages and Domain aliases for Wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.17 ▼0.851.57 ▼0.0537.32 ▼1.41
Dashboard /wp-admin2,213 ▲314.82 ▼0.11101.02 ▼5.6136.59 ▼3.33
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.1536.79 ▲1.6933.23 ▼0.64
Add New Post /wp-admin/post-new.php1,537 ▲1823.26 ▲0.11609.45 ▼21.4744.89 ▼13.95
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.0297.54 ▼6.4244.01 ▼0.22
Landing pages and Aliases /wp-admin/options-general.php?page=wordpress_landing_pages1,1392.0727.3936.17

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/landing-pages-and-domain-aliases/wordpress-landing-pages.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wordpress_landing_pages
    • > Network (severe)
    https://www.paypalobjects.com/en_NO/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
Please take inspiration from this readme.txt

landing-pages-and-domain-aliases/wordpress-landing-pages.php 85% from 13 tests

The main PHP file in "Landing pages and Domain aliases for Wordpress" ver. 0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("landing-pages-and-domain-aliases.php" instead of "wordpress-landing-pages.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 185 characters long)

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
Good job! No executable or dangerous file extensions detected551 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP124452551

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity119.00
▷ Minimum class complexity119.00
▷ Maximum class complexity119.00
Average method complexity9.64
▷ Minimum method complexity1.00
▷ Maximum method complexity84.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods1191.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin