Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Error in wp-content/plugins/multisite-clone-duplicator/lib/functions.php+180
Uncaught Error: Call to undefined function get_sites() in wp-content/plugins/multisite-clone-duplicator/lib/functions.php:180
Stack trace:
#0 wp-content/plugins/multisite-clone-duplicator/include/option.php(16): MUCD_Functions::get_sites()
#1 wp-content/plugins/multisite-clone-duplicator/include/option.php(65): MUCD_Option::init_duplicable_option()
#2 wp-content/plugins/multisite-clone-duplicator/multisite-clone-duplicator.php(70): MUCD_Option::init_options()
#3 wp-includes/class-wp-hook.php(310): MUCD::activate()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.55ms] Passed 4 tests
Analyzing server-side resources used by MultiSite Clone Duplicator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.08 ▼6.72 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.23 ▼4.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.78 ▼1.78 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.22 ▼13.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.47 ▲3.69 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for MultiSite Clone Duplicator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.25 ▼1.05 | 1.75 ▼0.46 | 37.72 ▼9.40 |
Dashboard /wp-admin | 2,209 ▲21 | 4.88 ▼0.99 | 96.42 ▼6.53 | 39.99 ▼4.61 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.05 | 39.32 ▲5.25 | 36.03 ▲2.48 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.21 ▼0.02 | 620.03 ▼8.29 | 43.89 ▼5.65 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.29 ▲0.06 | 96.18 ▼17.65 | 43.88 ▼1.88 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/multisite-clone-duplicator/multisite-clone-duplicator.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'MUCD_COMPLETE_PATH/lib/files.php' (include_path='.:/usr/share/php') in wp-content/plugins/multisite-clone-duplicator/lib/duplicate.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/multisite-clone-duplicator/template/network_admin_network_settings.php:9
- > PHP Fatal error
require_once(): Failed opening required 'MUCD_COMPLETE_PATH/lib/duplicate.php' (include_path='.:/usr/share/php') in wp-content/plugins/multisite-clone-duplicator/include/admin.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/multisite-clone-duplicator/include/lang.php:6
- > PHP Warning
Use of undefined constant MUCD_COMPLETE_PATH - assumed 'MUCD_COMPLETE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-clone-duplicator/lib/duplicate.php on line 5
- > PHP Warning
Use of undefined constant MUCD_NETWORK_PAGE_DUPLICATE_TITLE - assumed 'MUCD_NETWORK_PAGE_DUPLICATE_TITLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-clone-duplicator/template/network_admin_duplicate_site.php on line 2
- > PHP Warning
require_once(MUCD_COMPLETE_PATH/lib/files.php): failed to open stream: No such file or directory in wp-content/plugins/multisite-clone-duplicator/lib/duplicate.php on line 5
- > PHP Warning
Use of undefined constant MUCD_SLUG_ACTION_SETTINGS - assumed 'MUCD_SLUG_ACTION_SETTINGS' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-clone-duplicator/template/network_admin_network_settings.php on line 1
- > PHP Warning
Use of undefined constant MUCD_SLUG_ACTION_SETTINGS - assumed 'MUCD_SLUG_ACTION_SETTINGS' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-clone-duplicator/template/network_admin_network_settings.php on line 1
- > PHP Warning
require_once(MUCD_COMPLETE_PATH/lib/duplicate.php): failed to open stream: No such file or directory in wp-content/plugins/multisite-clone-duplicator/include/admin.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (**Basic features**), #2 (**Advanced features**), #3 (**Settings**), #4 (**Successfull duplication**), #5 (**Log warning**)
- Tags: You are using too many tags: 12 tag instead of maximum 10
multisite-clone-duplicator/multisite-clone-duplicator.php Passed 13 tests
"MultiSite Clone Duplicator" version 1.5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
109 characters long description:
Clones an existing site into a new one in a multisite installation : copies all the posts, settings and files
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
Good job! No executable or dangerous file extensions detected11,584 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 47 | 2,359 | 558 | 8,922 |
PHP | 13 | 377 | 624 | 1,451 |
PO File | 5 | 228 | 239 | 575 |
CSS | 3 | 15 | 0 | 440 |
Markdown | 1 | 69 | 0 | 196 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 23.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 75 | 85.23% |
▷ Public methods | 85 | 96.59% |
▷ Protected methods | 2 | 2.27% |
▷ Private methods | 1 | 1.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 68 | |
▷ Global constants | 67 | 98.53% |
▷ Class constants | 1 | 1.47% |
▷ Public constants | 1 | 100.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
5 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 6.14KB | 4.40KB | ▼ 28.29% |
screenshot-2.png | 9.12KB | 6.15KB | ▼ 32.55% |
screenshot-3.png | 17.75KB | 18.96KB | 0.00% |
screenshot-4.png | 3.17KB | 2.25KB | ▼ 29.12% |
screenshot-1.png | 16.58KB | 17.41KB | 0.00% |