90% cfs-options-screens

Code Review | CFS Options Screens

WordPress plugin CFS Options Screens scored90%from 54 tests.

About plugin

  • Plugin page: cfs-options-screens
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.9.0
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Feb 10, 2022
  • Number of updates: 37
  • Update frequency: every 74.5 days
  • Top authors: jchristopher (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /5,406 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by CFS Options Screens
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.83 ▲2.06
Dashboard /wp-admin3.33 ▼0.0249.23 ▼13.99
Posts /wp-admin/edit.php3.38 ▲0.0249.35 ▼4.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.45 ▼7.08
Media Library /wp-admin/upload.php3.25 ▲0.0240.74 ▲4.70

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

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

Browser metrics Passed 4 tests

CFS Options Screens: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.58 ▼0.801.99 ▲0.4145.20 ▲4.63
Dashboard /wp-admin2,221 ▲154.88 ▼0.01101.75 ▼1.6737.35 ▼5.24
Posts /wp-admin/edit.php2,103 ▼02.05 ▲0.0141.74 ▲2.2534.33 ▼2.06
Add New Post /wp-admin/post-new.php1,545 ▲1923.31 ▲5.76629.87 ▼38.0574.36 ▲22.12
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0996.79 ▼15.3747.09 ▼0.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: options, cfs, custom field suite, screen, settings

cfs-options-screens/cfs-options-screens.php 92% from 13 tests

This is the main PHP file of "CFS Options Screens" version 1.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 detected447 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2129201352
Markdown124066
CSS14029

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.72
Average class complexity71.00
▷ Minimum class complexity71.00
▷ Maximum class complexity71.00
Average method complexity4.89
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin