84% wpmu-copy-options

Code Review | WPMU copy options

WordPress plugin WPMU copy options scored84%from 54 tests.

About plugin

  • Plugin page: wpmu-copy-options
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 24, 2013
  • Latest release: Apr 25, 2013
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: dmf_tuva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,000 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.91ms] Passed 4 tests

Analyzing server-side resources used by WPMU copy options
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.44 ▼4.02
Dashboard /wp-admin3.31 ▼0.0443.19 ▼17.23
Posts /wp-admin/edit.php3.36 ▲0.0045.88 ▼0.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.48 ▼17.17
Media Library /wp-admin/upload.php3.23 ▲0.0034.53 ▼1.20

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WPMU copy options
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.201.63 ▼0.2240.16 ▼3.68
Dashboard /wp-admin2,209 ▲214.89 ▼0.02102.56 ▼12.6740.90 ▼1.94
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0039.77 ▼1.3434.06 ▼4.25
Add New Post /wp-admin/post-new.php1,533 ▲1223.26 ▼0.07679.50 ▲35.1862.35 ▲6.04
Media Library /wp-admin/upload.php1,385 ▼34.26 ▲0.02105.49 ▲10.1846.50 ▲4.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpmu-copy-options/views/show_submitlist.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmu-copy-options/wpmu-copy-options.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpmu-copy-options/views/show_optionlist.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Select source blog), #2 (Press edit button to edit option value and press "Save" button), #3 (Select options and blogs to apply), #4 (Result log)
  • Requires at least: Invalid version format
The official readme.txt might help

wpmu-copy-options/wpmu-copy-options.php Passed 13 tests

The primary PHP file in "WPMU copy options" version 1.0.0 is used by WordPress to initiate all plugin functionality
57 characters long description:
Copy any option from selected blog to other blogs in WPMU

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin347 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36830277
PO File1518647
CSS13023

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin