Benchmarks
Plugin footprint 23% 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
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/multisite-post-duplicator/mpd.php+104
Invalid argument supplied for foreach()
Server metrics [RAM: ▼1.13MB] [CPU: ▼47.81ms] Passed 4 tests
Analyzing server-side resources used by Multisite Post Duplicator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 13.46 ▼25.53 |
Dashboard /wp-admin | 2.87 ▼0.43 | 15.53 ▼34.43 |
Posts /wp-admin/edit.php | 2.87 ▼0.48 | 16.93 ▼37.13 |
Add New Post /wp-admin/post-new.php | 2.87 ▼3.01 | 15.65 ▼94.13 |
Media Library /wp-admin/upload.php | 2.87 ▼0.36 | 15.96 ▼19.21 |
Multisite Post Duplicator /wp-admin/tools.php?page=multisite-post-duplicator | 2.87 | 14.89 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 39 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_mpd_log |
New WordPress options |
---|
mpd_noted_posttypes |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
mpd_noted_taxonomies |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Multisite Post Duplicator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.73 ▲0.45 | 1.61 ▼0.02 | 41.53 ▼1.51 |
Dashboard /wp-admin | 2,210 ▲36 | 5.64 ▲0.10 | 89.53 ▼1.00 | 41.81 ▲2.25 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 2.01 ▲0.01 | 37.38 ▼5.20 | 34.08 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,544 ▲7 | 23.14 ▲4.77 | 595.66 ▼35.90 | 57.75 ▼5.74 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.27 ▲0.06 | 102.60 ▲4.50 | 43.40 ▲2.09 |
Multisite Post Duplicator /wp-admin/tools.php?page=multisite-post-duplicator | 815 | 1.80 | 27.08 | 28.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/multisite-post-duplicator/addons/restrictSites-mpd-addon.php+325
Trying to access array offset on value of type bool
- The uninstall procedure failed, leaving 1 table in the database
- wp_mpd_log
- The uninstall procedure has failed, leaving 8 options in the database
- mpd_noted_posttypes
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- mpd_noted_taxonomies
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/tools.php?page=multisite-post-duplicator
- > Notice in wp-content/plugins/multisite-post-duplicator/addons/restrictSites-mpd-addon.php+325
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/multisite-post-duplicator/inc/postform_ui.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-post-duplicator/addons/restrictSites-mpd-addon.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/multisite-post-duplicator/addons/bulkaction-mpd-addon.php:23
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-post-duplicator/addons/posts-2-posts-addon.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/multisite-post-duplicator/mpd.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-post-duplicator/inc/media.php:110
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-post-duplicator/addons/roleAccess-mpd-addon.php:22
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/multisite-post-duplicator/addons/posts-2-posts-addon.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/multisite-post-duplicator/addons/posts-2-posts-addon.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-post-duplicator/inc/load-scripts.php:133
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-post-duplicator/inc/persist.php:37
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: meta, multisite, individual, multi site, duplicate...
multisite-post-duplicator/mpd.php 92% from 13 tests
The entry point to "Multisite Post Duplicator" version 1.7.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("multisite-post-duplicator.php" instead of "mpd.php")
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
No dangerous file extensions were detected5,372 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 2,108 | 1,674 | 3,487 |
CSS | 5 | 125 | 22 | 715 |
SVG | 1 | 0 | 0 | 685 |
Markdown | 1 | 82 | 0 | 252 |
JavaScript | 5 | 97 | 6 | 233 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 172 | |
▷ Named functions | 172 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
images/tick.png | 1.56KB | 0.67KB | ▼ 56.95% |
images/smile.png | 1.52KB | 0.73KB | ▼ 51.84% |
css/select2.png | 0.60KB | 0.99KB | 0.00% |