89% heading-color-options

Code Review | Heading Color Options

WordPress plugin Heading Color Options scored89%from 54 tests.

About plugin

  • Plugin page: heading-color-opt...
  • Plugin version: 1.0.5
  • PHP compatiblity: 4.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2015
  • Latest release: Jul 3, 2019
  • Number of updates: 9
  • Update frequency: every 151.0 days
  • Top authors: kafleg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,411 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.69ms] Passed 4 tests

Analyzing server-side resources used by Heading Color Options
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.66 ▼3.10
Dashboard /wp-admin3.31 ▲0.0043.22 ▼1.21
Posts /wp-admin/edit.php3.36 ▲0.0045.07 ▲0.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.87 ▼17.29
Media Library /wp-admin/upload.php3.23 ▲0.0032.75 ▼1.16

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Heading Color Options
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.27 ▼0.271.66 ▲0.0043.21 ▲2.75
Dashboard /wp-admin2,195 ▲155.55 ▼0.0184.12 ▼6.1236.96 ▼3.72
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0142.99 ▲6.7835.69 ▼5.24
Add New Post /wp-admin/post-new.php1,526 ▼023.76 ▲0.66679.15 ▲0.9751.81 ▲0.60
Media Library /wp-admin/upload.php1,400 ▲34.14 ▼0.0494.34 ▼6.6243.87 ▼2.70

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Heading Color Options) image not found
Please take inspiration from this readme.txt

heading-color-options/heading-color-options.php 92% from 13 tests

This is the main PHP file of "Heading Color Options" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected383 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25340376
JavaScript1037

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin