84% easy-custom-theme-options

Code Review | Easy Custom Theme Options

WordPress plugin Easy Custom Theme Options scored 84% from 54 tests.

About plugin

  • Plugin page: easy-custom-theme...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9
  • WordPress version: 6.3.1
  • First release: Dec 18, 2018
  • Latest release: Dec 21, 2018
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: icorethink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 562 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.19MB] [CPU: ▼8.29ms] Passed 4 tests

An overview of server-side resources used by Easy Custom Theme Options
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1047.76 ▲6.13
Dashboard /wp-admin3.54 ▲0.2446.68 ▼7.75
Posts /wp-admin/edit.php3.61 ▲0.2546.89 ▼0.06
Add New Post /wp-admin/post-new.php6.16 ▲0.2776.44 ▼22.75
Media Library /wp-admin/upload.php3.42 ▲0.1932.31 ▼2.58
Easy Custom Theme Settings /wp-admin/themes.php?page=theme_options3.4030.94

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Custom Theme Options
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲21315.05 ▲0.661.67 ▼0.0240.31 ▼1.76
Dashboard /wp-admin2,362 ▲1776.39 ▲0.49126.84 ▲13.0637.71 ▼0.66
Posts /wp-admin/edit.php2,271 ▲1823.34 ▲1.3553.74 ▲16.4731.36 ▲1.10
Add New Post /wp-admin/post-new.php1,537 ▲423.32 ▲0.01598.38 ▼10.4332.95 ▼24.48
Media Library /wp-admin/upload.php1,395 ▲104.19 ▼0.0195.35 ▼9.1841.95 ▼4.93
Easy Custom Theme Settings /wp-admin/themes.php?page=theme_options1,0453.0443.2327.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-custom-theme-options/easy-custom-theme-options.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

easy-custom-theme-options/easy-custom-theme-options.php 92% from 13 tests

The main PHP script in "Easy Custom Theme Options" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin696 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22375511
SVG121185

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/banner-772x250.png24.95KB8.72KB▼ 65.04%
images/banner-1544x500-rtl.png72.01KB26.44KB▼ 63.28%
images/banner-1544x500.png69.83KB25.33KB▼ 63.73%
images/delete.png1.18KB0.41KB▼ 65.29%
images/image_icon.png3.65KB0.91KB▼ 75.07%