84% options-for-twenty-seventeen

Code Review | Options for Twenty Seventeen

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

About plugin

  • Plugin page: options-for-twent...
  • Plugin version: 2.5.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: May 3, 2018
  • Latest release: Oct 31, 2023
  • Number of updates: 194
  • Update frequency: every 10.4 days
  • Top authors: domainsupport (100%)

Code review

54 tests

User reviews

51 reviews

Install metrics

10,000+ active /308,402 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.02MB] [CPU: ▼4.00ms] Passed 4 tests

Analyzing server-side resources used by Options for Twenty Seventeen
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.87 ▼11.63
Dashboard /wp-admin3.33 ▲0.0245.15 ▼3.41
Posts /wp-admin/edit.php3.44 ▲0.0947.67 ▼0.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.39 ▼0.59
Media Library /wp-admin/upload.php3.25 ▲0.0238.03 ▲2.83

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Options for Twenty Seventeen
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.33 ▼0.021.55 ▼0.0939.15 ▼0.62
Dashboard /wp-admin2,207 ▲365.54 ▼0.0388.02 ▲2.1641.56 ▲4.46
Posts /wp-admin/edit.php2,113 ▲132.13 ▲0.1741.10 ▲4.2937.55 ▲0.25
Add New Post /wp-admin/post-new.php1,540 ▲323.07 ▲4.90666.54 ▲52.6653.16 ▼8.82
Media Library /wp-admin/upload.php1,412 ▲184.20 ▼0.0399.18 ▲2.1744.70 ▼0.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/options-for-twenty-seventeen/options-for-twenty-seventeen.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

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

The primary PHP file in "Options for Twenty Seventeen" version 2.5.2 is used by WordPress to initiate all plugin functionality
102 characters long description:
Adds powerful customizer options to modify all aspects of the default WordPress theme Twenty Seventeen

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
Good job! No executable or dangerous file extensions detected3,716 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2772213,088
JavaScript2699612
CSS11016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity62.67
▷ Minimum class complexity6.00
▷ Maximum class complexity97.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods48
▷ Static methods2756.25%
▷ Public methods48100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin