Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.01MB] [CPU: ▲2.69ms] Passed 4 tests
This is a short check of server-side resources used by NS Cloner - Site Copier
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.81 | 43.61 ▲1.57 |
Dashboard /wp-admin | 4.44 ▲1.09 | 55.38 ▼5.94 |
Posts /wp-admin/edit.php | 4.49 ▲1.13 | 57.37 ▲8.44 |
Add New Post /wp-admin/post-new.php | 6.96 ▲1.07 | 105.00 ▲6.69 |
Media Library /wp-admin/upload.php | 4.30 ▲1.07 | 48.77 ▲12.20 |
Logs / Status /wp-admin/admin.php?page=ns-cloner-logs | 4.32 | 41.03 |
NS Cloner /wp-admin/admin.php?page=ns-cloner | 4.34 | 48.08 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 192 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ns_cloner_logs |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
NS Cloner - Site Copier: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲69 | 14.70 ▲0.30 | 1.54 ▼0.17 | 36.43 ▼5.34 |
Dashboard /wp-admin | 2,206 ▲35 | 5.57 ▲0.03 | 92.68 ▼6.11 | 81.71 ▲37.97 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 2.00 ▲0.05 | 39.45 ▼2.38 | 35.77 ▲1.04 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 23.29 ▲0.26 | 592.00 ▼87.22 | 135.58 ▲73.21 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.13 ▼0.01 | 95.99 ▼5.98 | 69.75 ▲28.14 |
Logs / Status /wp-admin/admin.php?page=ns-cloner-logs | 1,036 | 1.78 | 30.10 | 90.86 |
NS Cloner /wp-admin/admin.php?page=ns-cloner | 1,426 | 2.40 | 37.77 | 83.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_ns_cloner_logs
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=ns-cloner-logs
- > Warning in wp-content/plugins/ns-cloner-site-copier/class-ns-cloner.php+421
include_once(wp-content/plugins/ns-cloner-site-copier//templates/ns-template-mcf-header.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=ns-cloner-logs
- > Warning in wp-content/plugins/ns-cloner-site-copier/class-ns-cloner.php+421
include_once(): Failed opening 'wp-content/plugins/ns-cloner-site-copier//templates/ns-template-mcf-header.php' for inclusion (include_path='.:/usr/share/php')
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
Please fix the following items
- 85× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Renderer\\Rich\\Plugin' not found in wp-content/plugins/ns-cloner-site-copier/lib/vendor/kint-php/kint/src/Renderer/Rich/DepthLimitPlugin.php:30
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Renderer\\Text\\Plugin' not found in wp-content/plugins/ns-cloner-site-copier/lib/vendor/kint-php/kint/src/Renderer/Text/ArrayLimitPlugin.php:30
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Zval\\Value' not found in wp-content/plugins/ns-cloner-site-copier/lib/vendor/kint-php/kint/src/Zval/MethodValue.php:33
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Zval\\ResourceValue' not found in wp-content/plugins/ns-cloner-site-copier/lib/vendor/kint-php/kint/src/Zval/StreamValue.php:30
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Parser\\Plugin' not found in wp-content/plugins/ns-cloner-site-copier/lib/vendor/kint-php/kint/src/Parser/ThrowablePlugin.php:34
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Zval\\Representation\\Representation' not found in wp-content/plugins/ns-cloner-site-copier/lib/vendor/kint-php/kint/src/Zval/Representation/MicrotimeRepresentation.php:30
- > PHP Fatal error
require_once(): Failed opening required 'NS_CLONER_V4_PLUGIN_DIRprocesses/class-ns-cloner-export-analytics-process.php' (include_path='.:/usr/share/php') in wp-content/plugins/ns-cloner-site-copier/features/class-ns-cloner-analytics.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Zval\\InstanceValue' not found in wp-content/plugins/ns-cloner-site-copier/lib/vendor/kint-php/kint/src/Zval/EnumValue.php:31
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Parser\\Plugin' not found in wp-content/plugins/ns-cloner-site-copier/lib/vendor/kint-php/kint/src/Parser/StreamPlugin.php:33
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Zval\\Representation\\Representation' not found in wp-content/plugins/ns-cloner-site-copier/lib/vendor/kint-php/kint/src/Zval/Representation/SourceRepresentation.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: network, template, cloner, clone, automate...
ns-cloner-site-copier/ns-cloner.php 85% from 13 tests
The main PHP script in "NS Cloner - Site Copier" version 4.4 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 235 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ns-cloner-site-copier.php" instead of "ns-cloner.php")
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
Good job! No executable or dangerous file extensions detected16,710 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 2,604 | 5,902 | 11,161 |
JavaScript | 10 | 253 | 150 | 3,259 |
Sass | 1 | 225 | 1 | 1,399 |
CSS | 8 | 73 | 33 | 407 |
JSON | 6 | 0 | 0 | 339 |
Markdown | 3 | 45 | 0 | 110 |
SVG | 2 | 0 | 0 | 23 |
YAML | 1 | 3 | 4 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 109 | |
▷ Abstract classes | 9 | 8.26% |
▷ Concrete classes | 100 | 91.74% |
▷ Final classes | 3 | 3.00% |
Methods | 609 | |
▷ Static methods | 75 | 12.32% |
▷ Public methods | 514 | 84.40% |
▷ Protected methods | 69 | 11.33% |
▷ Private methods | 26 | 4.27% |
Functions | 42 | |
▷ Named functions | 24 | 57.14% |
▷ Anonymous functions | 18 | 42.86% |
Constants | 48 | |
▷ Global constants | 18 | 37.50% |
▷ Class constants | 30 | 62.50% |
▷ Public constants | 30 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.58MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ns-follow.png | 4.95KB | 2.74KB | ▼ 44.66% |
lib/vendor/harvesthq/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
images/banner-background.png | 286.44KB | 163.21KB | ▼ 43.02% |
images/mcf-amazon-logo.png | 7.51KB | 4.09KB | ▼ 45.49% |
images/ns-visit.png | 4.33KB | 2.60KB | ▼ 39.89% |