84% customizer-framework

Code Review | Customizer Framework

WordPress plugin Customizer Framework scored84%from 54 tests.

About plugin

  • Plugin page: customizer-framework
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.0
  • WordPress version: 6.3.1
  • First release: Jul 28, 2014
  • Latest release: Jul 28, 2014
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: philip.newcomer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,456 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.12ms] Passed 4 tests

A check of server-side resources used by Customizer Framework
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0331.96 ▼8.53
Dashboard /wp-admin3.34 ▲0.0343.88 ▼4.21
Posts /wp-admin/edit.php3.39 ▲0.0344.44 ▲2.44
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.85 ▼26.17
Media Library /wp-admin/upload.php3.26 ▲0.0337.44 ▲3.58

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Customizer Framework
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.73 ▲0.181.62 ▼0.0238.19 ▼0.39
Dashboard /wp-admin2,198 ▲215.57 ▼0.0482.87 ▼5.4537.52 ▼3.85
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0234.85 ▲0.6433.67 ▲0.60
Add New Post /wp-admin/post-new.php1,535 ▲918.35 ▼5.03613.94 ▼69.2568.22 ▲16.53
Media Library /wp-admin/upload.php1,400 ▲34.30 ▲0.1193.17 ▼6.8744.05 ▼3.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizer-framework/customizer-framework.php:49

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

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

"Customizer Framework" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
A lightweight and easy-to-use framework for the WordPress Customizer.

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
There were no executable files found in this plugin180 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25763180

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity8.20
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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