84% options-for-twenty-twenty

Code Review | Options for Twenty Twenty

WordPress plugin Options for Twenty Twenty scored84%from 54 tests.

About plugin

  • Plugin page: options-for-twent...
  • Plugin version: 1.6.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jan 7, 2020
  • Latest release: Oct 31, 2023
  • Number of updates: 80
  • Update frequency: every 17.4 days
  • Top authors: domainsupport (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

4,000+ active /90,991 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
Installer ran successfully

Server metrics [RAM: ▲0.53MB] [CPU: ▼15.43ms] Passed 4 tests

A check of server-side resources used by Options for Twenty Twenty
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5346.55 ▼6.44
Dashboard /wp-admin3.85 ▲0.5153.12 ▼25.64
Posts /wp-admin/edit.php3.97 ▲0.6146.68 ▼7.79
Add New Post /wp-admin/post-new.php6.43 ▲0.5594.39 ▼21.85
Media Library /wp-admin/upload.php3.78 ▲0.5540.45 ▼4.93

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Options for Twenty Twenty
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▼0.261.68 ▼0.6442.81 ▼9.85
Dashboard /wp-admin2,195 ▲275.61 ▼0.0583.89 ▼34.1037.97 ▼16.79
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0536.08 ▼12.9133.61 ▼12.17
Add New Post /wp-admin/post-new.php1,535 ▲918.43 ▼2.95605.50 ▼248.0160.29 ▲0.87
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0796.61 ▼88.0842.65 ▼24.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/options-for-twenty-twenty/options-for-twenty-twenty.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: modify, change, customize, twentytwenty, twenty-twenty

options-for-twenty-twenty/options-for-twenty-twenty.php Passed 13 tests

The main file in "Options for Twenty Twenty" v. 1.6.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
Adds powerful customizer options to modify all aspects of the default WordPress theme Twenty Twenty

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,663 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2797223,213
JavaScript3525439
CSS10011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity64.67
▷ Minimum class complexity6.00
▷ Maximum class complexity103.00
Average method complexity5.24
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods45
▷ Static methods2453.33%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG files were detected