84% customize-twenty-sixteen

Code Review | Customize Twenty Sixteen

WordPress plugin Customize Twenty Sixteen scored 84% from 54 tests.

About plugin

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

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active / 8,315 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Customize Twenty Sixteen
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.87 ▲0.16
Dashboard /wp-admin3.32 ▲0.0251.87 ▼10.38
Posts /wp-admin/edit.php3.37 ▲0.0253.61 ▲2.45
Add New Post /wp-admin/post-new.php5.90 ▲0.02100.01 ▲1.72
Media Library /wp-admin/upload.php3.24 ▲0.0238.31 ▲0.37

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Customize Twenty Sixteen
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.29 ▼1.501.90 ▼0.0240.66 ▼7.98
Dashboard /wp-admin2,206 ▼35.84 ▼0.01107.25 ▲7.5040.35 ▲1.57
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0039.51 ▲4.6433.71 ▼0.60
Add New Post /wp-admin/post-new.php1,533 ▼223.30 ▲0.21585.95 ▼32.9248.98 ▲1.89
Media Library /wp-admin/upload.php1,388 ▲64.30 ▲0.1295.14 ▼8.4541.00 ▼1.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-sixteen/bt-no-sidebar-bb.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-twenty-sixteen/bt_customize_2016.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'BoldThemes' not found in wp-content/plugins/customize-twenty-sixteen/web_fonts.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-sixteen/bt-no-sidebar-wide.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-sixteen/bt-no-sidebar-boxed.php:17

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: template, header, change, sidebar, fonts...

customize-twenty-sixteen/bt_customize_2016.php 92% from 13 tests

"Customize Twenty Sixteen" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("customize-twenty-sixteen.php" instead of "bt_customize_2016.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin560 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39977449
CSS1338111
JavaScript1010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions18
▷ Named functions18100.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 files were detected