64% multisite-landingpages

Code Review | Multisite Landingpages

WordPress plugin Multisite Landingpages scored64%from 54 tests.

About plugin

  • Plugin page: multisite-landing...
  • Plugin version: 1.2.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2022
  • Latest release: Oct 30, 2022
  • Number of updates: 6
  • Update frequency: every 77.8 days
  • Top authors: ruigehond (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /495 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.78ms] Passed 4 tests

Analyzing server-side resources used by Multisite Landingpages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.74 ▼4.20
Dashboard /wp-admin3.31 ▼0.0446.40 ▼14.63
Posts /wp-admin/edit.php3.36 ▲0.0047.35 ▼1.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.44 ▼11.19
Media Library /wp-admin/upload.php3.23 ▲0.0034.84 ▲0.68

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Multisite Landingpages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.27 ▼0.961.95 ▲0.0842.12 ▼1.14
Dashboard /wp-admin2,206 ▲184.79 ▼1.10105.28 ▼8.5637.29 ▼6.39
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0139.93 ▲3.5234.76 ▲0.32
Add New Post /wp-admin/post-new.php1,514 ▼517.58 ▼5.58669.86 ▲14.3650.76 ▼12.55
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.0794.62 ▼4.6943.07 ▲1.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Error in wp-content/plugins/multisite-landingpages/multisite-landingpages.php+749
    Uncaught Error: Call to undefined function wp_is_large_network() in wp-content/plugins/multisite-landingpages/multisite-landingpages.php:749
    Stack trace:
    #0 wp-content/plugins/multisite-landingpages/multisite-landingpages.php(785): ruigehond011->deactivate()
    #1 wp-content/plugins/multisite-landingpages/multisite-landingpages.php(796): ruigehond011->network_uninstall()
    #2 wp-includes/class-wp-hook.php(310): ruigehond011_uninstall()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/includes/plugin.php(1269): do_action()
    #6 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • Incomplete uninstall procedure, leaving 6 files (0.05MB) in the plugin directory
    • (new file) sunrise-functions.php
    • (new file) languages/multisite-landingpages.pot
    • (new file) README.txt
    • (new file) LICENSE
    • (new file) multisite-landingpages.php
    • (new file) sunrise.php
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • ruigehond011
    • can_compress_scripts
    • db_upgraded
    • recovery_mode_email_last_sent

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'base_prefix' of non-object in wp-content/plugins/multisite-landingpages/sunrise-functions.php on line 31
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/multisite-landingpages/sunrise-functions.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: landing page, landingpages, domain, mapping, multisite

multisite-landingpages/multisite-landingpages.php Passed 13 tests

"Multisite Landingpages" version 1.2.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
130 characters long description:
Multisite version of ‘Each domain a page’. Assign the slug of a landing page you created to a domain you own for SEO purposes.

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
No dangerous file extensions were detected685 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP340196685

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity105.00
▷ Minimum class complexity105.00
▷ Maximum class complexity105.00
Average method complexity5.24
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1986.36%
▷ Protected methods00.00%
▷ Private methods313.64%
Functions10
▷ Named functions440.00%
▷ Anonymous functions660.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin