77% awesome-color-palettes

Code Review | Awesome Color Palettes

WordPress plugin Awesome Color Palettes scored 77% from 54 tests.

About plugin

  • Plugin page: awesome-color-pal...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Mar 30, 2021
  • Number of updates: 19
  • Update frequency: every 128.6 days
  • Top authors: halgatewood (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 7,779 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.18ms] Passed 4 tests

An overview of server-side resources used by Awesome Color Palettes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.15 ▲6.33
Dashboard /wp-admin3.32 ▲0.0148.39 ▼5.84
Posts /wp-admin/edit.php3.37 ▲0.0144.57 ▼4.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.08 ▼10.84
Media Library /wp-admin/upload.php3.24 ▲0.0134.08 ▲0.38

Server storage [IO: ▲0.00MB] [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
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Awesome Color Palettes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.25 ▼1.051.98 ▼0.0738.09 ▼13.26
Dashboard /wp-admin2,206 ▲155.77 ▲0.7299.43 ▼15.6339.59 ▼6.37
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0335.78 ▼1.2634.16 ▲0.36
Add New Post /wp-admin/post-new.php1,514 ▼517.49 ▼5.77689.86 ▲17.9763.13 ▲5.46
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0295.05 ▼7.2441.94 ▼1.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/awesome-color-palettes/awesome-color-palette.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/awesome-color-palettes/awesome-color-palette.php on line 2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/awesome-color-palettes/awesome-color-palette.php on line 5
    • > PHP Notice
      Undefined variable: palette in wp-content/plugins/awesome-color-palettes/awesome-color-palette.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-color-palettes/awesome-color-palettes.php:15
    • > PHP Notice
      Undefined variable: palette in wp-content/plugins/awesome-color-palettes/awesome-color-palette.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === awesome-color-palettes === )
  • Screenshots: Please a description for screenshot #0 in awesome-color-palettes/assets to your readme.txt
  • Screenshots: Screenshot #1 (When the user hovers over the palette expands to show the hex values) image required
You can look at the official readme.txt

awesome-color-palettes/awesome-color-palettes.php 85% from 13 tests

"Awesome Color Palettes" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
No dangerous file extensions were detected79 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2181962
CSS14017

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin