84% gp-pro-freeform-style

Code Review | Genesis Design Palette Pro - Freeform Style

WordPress plugin Genesis Design Palette Pro - Freeform Style scored84%from 54 tests.

About plugin

  • Plugin page: gp-pro-freeform-s...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 4, 2014
  • Latest release: Dec 23, 2020
  • Number of updates: 25
  • Update frequency: every 101.8 days
  • Top authors: norcross (56%)Nick_theGeek (48%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /9,790 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.22ms] Passed 4 tests

Server-side resources used by Genesis Design Palette Pro - Freeform Style
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.64 ▼3.95
Dashboard /wp-admin3.35 ▲0.0152.30 ▼14.15
Posts /wp-admin/edit.php3.41 ▲0.0551.80 ▲1.22
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.35 ▼8.00
Media Library /wp-admin/upload.php3.28 ▲0.0537.77 ▲3.69

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Design Palette Pro - Freeform Style
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.72 ▲0.491.95 ▲0.1747.43 ▲7.50
Dashboard /wp-admin2,192 ▲215.52 ▼0.0992.75 ▼5.8242.08 ▼6.20
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0539.12 ▼1.7835.75 ▲0.93
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.03679.62 ▲70.7253.57 ▲0.68
Media Library /wp-admin/upload.php1,403 ▲64.23 ▲0.05100.12 ▼8.9249.30 ▲5.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/gp-pro-freeform-style/gp-pro-freeform-style.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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
There were not plugin tags detected

gp-pro-freeform-style/gp-pro-freeform-style.php Passed 13 tests

The entry point to "Genesis Design Palette Pro - Freeform Style" version 1.0.8 is a PHP file that has certain tags in its header comment area
37 characters long description:
Adds a setting space for freeform CSS

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected299 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP180174220
PO File1121241
JavaScript2152835
CSS1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods430.77%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin