Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.18ms] Passed 4 tests
Analyzing server-side resources used by Duplicate Publish Multisite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.99 ▲2.71 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.26 ▼4.21 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.43 ▼1.73 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.71 ▼5.74 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.00 ▼1.05 |
Publish Multisite /wp-admin/options-general.php?page=publish_multisite_admin | 3.20 | 28.87 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
recovery_mode_email_last_sent |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Duplicate Publish Multisite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.46 ▼0.12 | 1.74 ▼0.08 | 42.95 ▼1.48 |
Dashboard /wp-admin | 2,211 ▲34 | 5.59 ▼0.07 | 82.32 ▼6.24 | 34.76 ▼8.26 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▼0.01 | 35.28 ▼0.54 | 30.74 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.25 ▼0.39 | 678.99 ▼8.99 | 56.98 ▲2.57 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.27 ▲0.12 | 95.11 ▼1.96 | 43.69 ▼1.99 |
Publish Multisite /wp-admin/options-general.php?page=publish_multisite_admin | 744 | 1.14 | 8.14 | 24.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 did not uninstall successfully, leaving 7 options in the database
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=publish_multisite_admin
- > Error in wp-content/plugins/duplicate-publish-multisite/includes/class-pubmult-settings.php+208
Uncaught Error: Call to undefined function get_sites() in wp-content/plugins/duplicate-publish-multisite/includes/class-pubmult-settings.php:208
Stack trace:
#0 wp-content/plugins/duplicate-publish-multisite/includes/class-pubmult-settings.php(334): PUBMULT_Settings->get_sites_publish()
#1 wp-admin/includes/template.php(1824): PUBMULT_Settings->musite_callback()
#2 wp-admin/includes/template.php(1778): do_settings_fields()
#3 wp-content/plugins/duplicate-publish-multisite/includes/class-pubmult-settings.php(104): do_settings_sections()
#4 wp-includes/class-wp-hook.php(310): PUBMULT_Settings->create_admin_page()
#5 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#6 wp-includes/plugin.php(517): WP_Hook->do_action()
#7 wp-admin/admin.php(259): do_action()
#8 wp-admin/options-general.php(10): require_once('/var/ww
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/duplicate-publish-multisite/publish-multisite.php
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 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
3 plugin tags: multisite, sync posts, duplicate
duplicate-publish-multisite/publish-multisite.php 85% from 13 tests
This is the main PHP file of "Duplicate Publish Multisite" version 1.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("duplicate-publish-multisite.php" instead of "publish-multisite.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected748 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 91 | 217 | 632 |
JavaScript | 2 | 8 | 0 | 72 |
CSS | 1 | 5 | 1 | 44 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 6.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 73.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 26.32% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin