84% fourteen-colors

Code Review | Fourteen Colors

WordPress plugin Fourteen Colors scored 84% from 54 tests.

About plugin

  • Plugin page: fourteen-colors
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Dec 4, 2013
  • Latest release: Sep 18, 2023
  • Number of updates: 97
  • Update frequency: every 36.9 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

47 reviews

Install metrics

10,000+ active / 228,151 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Fourteen Colors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.10 ▼4.62
Dashboard /wp-admin3.31 ▲0.0045.46 ▼5.22
Posts /wp-admin/edit.php3.36 ▲0.0044.52 ▼1.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.46 ▼5.41
Media Library /wp-admin/upload.php3.23 ▲0.0036.91 ▲4.07

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Fourteen Colors
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼0.941.80 ▼0.3240.54 ▼8.81
Dashboard /wp-admin2,206 ▲215.76 ▼0.14107.35 ▼9.9735.50 ▼11.52
Posts /wp-admin/edit.php2,086 ▼32.00 ▲0.0339.41 ▲1.6336.31 ▲1.03
Add New Post /wp-admin/post-new.php1,517 ▼1617.71 ▼5.45647.30 ▲60.8950.55 ▼6.64
Media Library /wp-admin/upload.php1,382 ▼94.20 ▲0.0094.78 ▼3.8043.96 ▲2.87

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template() in wp-content/plugins/fourteen-colors/fourteen-colors.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fourteen-colors/component-link-color.php:31

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: default theme, custom colors, twenty fourteen theme, customizer, bundled theme...

fourteen-colors/fourteen-colors.php Passed 13 tests

This is the main PHP file of "Fourteen Colors" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
Customize the colors of the Twenty Fourteen Theme, directly within the Customizer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin809 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4117282772
JavaScript111221
SVG10016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions18
▷ Named functions18100.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
There were not PNG files found in your plugin