84% heading-block-font-color

Code Review | Heading Block Font Color

WordPress plugin Heading Block Font Color scored84%from 54 tests.

About plugin

  • Plugin page: heading-block-fon...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 25, 2019
  • Latest release: Feb 1, 2019
  • Number of updates: 10
  • Update frequency: every 0.7 days
  • Top authors: tejas5989 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,469 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.00MB] [CPU: ▼3.29ms] Passed 4 tests

A check of server-side resources used by Heading Block Font Color
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.37 ▲2.32
Dashboard /wp-admin3.31 ▲0.0152.25 ▼0.19
Posts /wp-admin/edit.php3.36 ▲0.0049.96 ▲2.17
Add New Post /wp-admin/post-new.php5.89 ▼0.0084.70 ▼17.46
Media Library /wp-admin/upload.php3.24 ▲0.0037.76 ▲2.80

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Heading Block Font Color
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.17 ▼0.361.85 ▼0.1344.16 ▲1.47
Dashboard /wp-admin2,198 ▲215.62 ▲0.0186.69 ▲0.4541.26 ▼1.29
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0136.22 ▼1.7533.22 ▼3.85
Add New Post /wp-admin/post-new.php1,686 ▲15621.94 ▼1.07641.31 ▼51.2855.56 ▲2.05
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0296.98 ▼8.0143.44 ▼3.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% 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)
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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/heading-block-font-color/heading-block-font-color-plugin.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: text color, heading color, gutenberg heading block, font color, block guide...

heading-block-font-color/heading-block-font-color-plugin.php 92% from 13 tests

"Heading Block Font Color" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("heading-block-font-color.php" instead of "heading-block-font-color-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin166 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11232157
PHP12119

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin