79% coder-customizer-framework

Code Review | Coder Customizer Framework

WordPress plugin Coder Customizer Framework scored79%from 54 tests.

About plugin

  • Plugin page: coder-customizer-...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Jun 23, 2015
  • Latest release: Dec 8, 2015
  • Number of updates: 17
  • Update frequency: every 9.9 days
  • Top authors: codersantosh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.61ms] Passed 4 tests

Server-side resources used by Coder Customizer Framework
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1136.80 ▼2.64
Dashboard /wp-admin3.40 ▲0.0544.60 ▼12.71
Posts /wp-admin/edit.php3.52 ▲0.1645.84 ▼4.28
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.36 ▼10.81
Media Library /wp-admin/upload.php3.32 ▲0.0936.88 ▲4.64

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coder Customizer Framework
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.105.06 ▲3.3139.36 ▼8.74
Dashboard /wp-admin2,206 ▲154.88 ▼0.0098.07 ▼12.8036.69 ▼5.01
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0340.55 ▼0.8035.15 ▼1.48
Add New Post /wp-admin/post-new.php1,542 ▲918.33 ▼4.81645.72 ▼13.6253.14 ▲0.88
Media Library /wp-admin/upload.php1,382 ▼64.18 ▼0.0494.17 ▼0.9040.61 ▼5.60

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/coder-customizer-framework/coder-customizer-framework.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/coder-customizer-framework/inc/coder-customizer-custom-control.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coder-customizer-framework/inc/hooks/add-setting-controls.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/coder-customizer-framework/inc/coder-customizer-hooks.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/coder-customizer-framework/inc/coder-sanitization-functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/coder-customizer-framework/inc/coder-customizer-functions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: theme customizer, customizer, theme option, theme mods

coder-customizer-framework/coder-customizer-framework.php Passed 13 tests

The main file in "Coder Customizer Framework" v. 2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Use WordPress Customizer in easy and standard way to your theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected759 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP24116548741
CSS11218

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity14.43
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity7.27
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.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 images were found in this plugin