68% extend-theme-cusotomizer

Code Review | Extend Theme Customizer

WordPress plugin Extend Theme Customizer scored68%from 54 tests.

About plugin

  • Plugin page: extend-theme-cuso...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2014
  • Latest release: Jul 18, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ishihara takashi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,192 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.69MB] [CPU: ▼33.02ms] Passed 4 tests

An overview of server-side resources used by Extend Theme Customizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1545.67 ▼1.39
Dashboard /wp-admin3.26 ▼0.0528.50 ▼27.51
Posts /wp-admin/edit.php3.26 ▼0.1028.24 ▼23.70
Add New Post /wp-admin/post-new.php3.26 ▼2.6324.65 ▼74.54
Media Library /wp-admin/upload.php3.26 ▲0.0226.76 ▼6.33
ETC Settings /wp-admin/options-general.php?page=extend-theme-customizer3.2623.89

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Extend Theme Customizer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.12 ▼0.241.88 ▲0.2143.90 ▲0.32
Dashboard /wp-admin2,196 ▲195.50 ▼0.1483.57 ▼19.7737.87 ▼4.98
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0836.73 ▲0.5436.71 ▲3.67
Add New Post /wp-admin/post-new.php1,543 ▲1718.22 ▼5.16649.27 ▲4.6659.72 ▲10.72
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.0296.51 ▼12.1943.95 ▼4.74
ETC Settings /wp-admin/options-general.php?page=extend-theme-customizer1,6062.0429.3354.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/extend-theme-cusotomizer/admin/extend-theme-customizer-admin.php+161
    Undefined index: etc_json_file
  • Zombie WordPress options detected upon uninstall: 7 options
    • etc_json_settings
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=extend-theme-customizer
    • > Notice in wp-content/plugins/extend-theme-cusotomizer/admin/extend-theme-customizer-admin.php+161
    Undefined index: etc_json_file
    • > GET request to /wp-admin/options-general.php?page=extend-theme-customizer
    • > Notice in wp-content/plugins/extend-theme-cusotomizer/admin/extend-theme-customizer-admin.php+162
    Undefined index: _wp_nonce
    • > GET request to /wp-admin/options-general.php?page=extend-theme-customizer
    • > Notice in wp-content/plugins/extend-theme-cusotomizer/admin/views/admin.php+15
    Undefined variable: tc_width

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/extend-theme-cusotomizer/admin/views/admin.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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 your attention:
  • Screenshots: These screenshots do not have images: #1 (Set json file.), #2 (view theme customizer.)
The official readme.txt is a good inspiration

extend-theme-cusotomizer/extend-theme-customizer.php 92% from 13 tests

The main PHP script in "Extend Theme Customizer" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("extend-theme-cusotomizer.php" instead of "extend-theme-customizer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,446 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP183484191,004
PO File23840111
JSON100109
CSS18197
JavaScript16963
Markdown123062

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.38
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods57
▷ Static methods35.26%
▷ Public methods4884.21%
▷ Protected methods00.00%
▷ Private methods915.79%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.20MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png83.67KB29.05KB▼ 65.28%
fields/layout/img/2cl.png3.55KB0.11KB▼ 96.92%
fields/layout/img/2cr.png3.55KB0.11KB▼ 96.97%
screenshot-2.png107.97KB37.61KB▼ 65.16%
fields/layout/img/1col.png3.52KB0.09KB▼ 97.56%