84% fv-clone-screen-options

Code Review | FV Clone Screen Options

WordPress plugin FV Clone Screen Options scored84%from 54 tests.

About plugin

  • Plugin page: fv-clone-screen-o...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3
  • WordPress version: 6.3.1
  • First release: Feb 10, 2010
  • Latest release: Aug 21, 2023
  • Number of updates: 32
  • Update frequency: every 155.3 days
  • Top authors: FolioVision (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active /15,084 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.47ms] Passed 4 tests

This is a short check of server-side resources used by FV Clone Screen Options
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.55 ▼5.08
Dashboard /wp-admin3.33 ▲0.0345.75 ▼0.96
Posts /wp-admin/edit.php3.38 ▲0.0246.44 ▼1.38
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.83 ▲1.55
Media Library /wp-admin/upload.php3.25 ▲0.0235.85 ▲2.21
Clone Screen Options /wp-admin/tools.php?page=fv_screen_options_manage3.2752.96

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by FV Clone Screen Options
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.201.64 ▼0.1337.01 ▼7.98
Dashboard /wp-admin2,207 ▲224.84 ▼1.04109.19 ▼10.6744.79 ▲1.77
Posts /wp-admin/edit.php2,093 ▲11.99 ▲0.0138.89 ▲2.8335.57 ▲2.64
Add New Post /wp-admin/post-new.php1,517 ▼1617.62 ▼5.52617.18 ▼49.0956.59 ▲3.71
Media Library /wp-admin/upload.php1,392 ▲74.16 ▼0.0296.37 ▼1.8242.42 ▼2.27
Clone Screen Options /wp-admin/tools.php?page=fv_screen_options_manage7702.0624.7923.72

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fv-clone-screen-options/fv-screen-options.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (FV Clone Screen Options in your Wordpress menu), #2 (FV Clone Screen Options screen), #3 (Here's how you set your own Screen Options which you are able to clone to other users)
You can look at the official readme.txt

fv-clone-screen-options/fv-screen-options.php 92% from 13 tests

The primary PHP file in "FV Clone Screen Options" version 0.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fv-clone-screen-options.php" instead of "fv-screen-options.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
Everything looks great! No dangerous files found in this plugin141 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14642138
Markdown1103

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.74KB3.17KB▼ 52.89%
screenshot-3.png64.86KB23.04KB▼ 64.47%
screenshot-2.png14.72KB7.36KB▼ 50.01%