84% customize-twenty-seventeen

Code Review | Customize Twenty Seventeen

WordPress plugin Customize Twenty Seventeen scored84%from 54 tests.

About plugin

  • Plugin page: customize-twenty-...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 6.3.1
  • First release: Dec 28, 2016
  • Latest release: Mar 10, 2022
  • Number of updates: 10
  • Update frequency: every 189.7 days
  • Top authors: boldthemes (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active /38,332 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Customize Twenty Seventeen
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.30 ▲1.46
Dashboard /wp-admin3.32 ▲0.0146.43 ▼2.04
Posts /wp-admin/edit.php3.37 ▲0.0145.81 ▼1.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.83 ▼10.27
Media Library /wp-admin/upload.php3.24 ▲0.0135.13 ▲2.77

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Customize Twenty Seventeen
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.56 ▲0.211.67 ▼0.0644.48 ▲3.57
Dashboard /wp-admin2,192 ▲125.61 ▼0.0495.18 ▲5.4242.99 ▼1.05
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0739.04 ▲2.2735.95 ▲2.40
Add New Post /wp-admin/post-new.php1,526 ▼1123.44 ▲5.12685.97 ▲26.5156.98 ▼12.22
Media Library /wp-admin/upload.php1,394 ▼64.18 ▼0.0495.58 ▲0.1845.16 ▲1.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-seventeen/bt-no-sidebar-bb.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-seventeen/bt-no-sidebar-boxed.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-twenty-seventeen/bt_customize_2017.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'BoldThemes' not found in wp-content/plugins/customize-twenty-seventeen/web_fonts.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-seventeen/bt-no-sidebar-wide.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: twentyseventeen, fonts, page, header, modify...

customize-twenty-seventeen/bt_customize_2017.php 92% from 13 tests

Analyzing the main PHP file in "Customize Twenty Seventeen" version 1.0.5
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("customize-twenty-seventeen.php" instead of "bt_customize_2017.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin608 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ 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