94% clone-screen-options

Code Review | Clone Screen Options

WordPress plugin Clone Screen Options scored 94% from 54 tests.

About plugin

  • Plugin page: clone-screen-options
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7.4
  • WordPress version: 5.8.1
  • First release: Oct 27, 2016
  • Latest release: May 4, 2017
  • Number of updates: 7
  • Update frequency: every 29.1 days
  • Top authors: kodeo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,436 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼136.88ms] Passed 4 tests

Server-side resources used by Clone Screen Options
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1534.64 ▲9.01
Dashboard /wp-admin3.10 ▲0.0546.92 ▲4.45
Posts /wp-admin/edit.php3.15 ▲0.0548.35 ▲4.10
Add New Post /wp-admin/post-new.php5.46 ▲0.0389.79 ▼557.30
Media Library /wp-admin/upload.php3.04 ▲0.0436.13 ▲1.23
Clone Screen Options /wp-admin/tools.php?page=clone_screen_options3.0130.18

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Clone Screen Options
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.89 ▲0.3714.39 ▲4.6651.26 ▲2.90
Dashboard /wp-admin2,964 ▲335.94 ▼0.02152.21 ▲15.05113.91 ▲6.23
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0263.17 ▼6.8588.29 ▲7.03
Add New Post /wp-admin/post-new.php1,686 ▲318.45 ▼0.29418.02 ▼29.54116.05 ▲4.06
Media Library /wp-admin/upload.php1,812 ▲55.01 ▼0.02168.60 ▲4.67114.54 ▲3.85
Clone Screen Options /wp-admin/tools.php?page=clone_screen_options1,2232.1156.7672.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clone-screen-options/clone-screen-options.php:310

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)
There were no browser issues found


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 your attention: You can look at the official readme.txt

clone-screen-options/clone-screen-options.php Passed 13 tests

The main PHP file in "Clone Screen Options" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
89 characters long description:
This plugin will let you clone screen options from one user to another user or user role.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin265 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity5.71
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin