84% multisite-cloner

Code Review | Multisite Cloner

WordPress plugin Multisite Cloner scored84%from 54 tests.

About plugin

  • Plugin page: multisite-cloner
  • Plugin version: 0.2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: May 30, 2014
  • Latest release: Nov 18, 2016
  • Number of updates: 33
  • Update frequency: every 27.4 days
  • Top authors: ManuelRazzari (60.61%)pmtarantino (42.42%)

Code review

54 tests

User reviews

29 reviews

Install metrics

100+ active /33,062 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.98ms] Passed 4 tests

This is a short check of server-side resources used by Multisite Cloner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.99 ▼1.62
Dashboard /wp-admin3.31 ▲0.0046.51 ▼3.62
Posts /wp-admin/edit.php3.36 ▲0.0046.73 ▼2.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.91 ▼7.92
Media Library /wp-admin/upload.php3.23 ▲0.0034.25 ▲2.92

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Multisite Cloner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.062.63 ▲0.8339.45 ▼6.17
Dashboard /wp-admin2,206 ▲154.85 ▼1.01111.11 ▲5.9642.72 ▲0.90
Posts /wp-admin/edit.php2,089 ▲32.03 ▼0.0546.13 ▲9.1435.01 ▲0.47
Add New Post /wp-admin/post-new.php1,533 ▼023.12 ▲0.10658.25 ▼12.4856.02 ▲2.28
Media Library /wp-admin/upload.php1,388 ▲34.19 ▲0.1196.41 ▼13.0143.18 ▲1.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/multisite-cloner/multisite-cloner.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: copy blog, multisite, defaults, copy, default settings...

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

The entry point to "Multisite Cloner" version 0.2.2.1 is a PHP file that has certain tags in its header comment area
129 characters long description:
When creating a new blog on WordPress Multisite, copies all the posts, settings and files, from a selected blog into the new one.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin345 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111559345

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
flying-dolly.png54.62KB20.71KB▼ 62.09%