84% gppro-google-webfonts

Code Review | Genesis Design Palette Pro - Google Web Fonts

WordPress plugin Genesis Design Palette Pro - Google Web Fonts scored84%from 54 tests.

About plugin

  • Plugin page: gppro-google-webf...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 4, 2014
  • Latest release: Aug 19, 2020
  • Number of updates: 26
  • Update frequency: every 93.0 days
  • Top authors: norcross (53.85%)Nick_theGeek (38.46%)corywebb (15.38%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /14,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.64ms] Passed 4 tests

An overview of server-side resources used by Genesis Design Palette Pro - Google Web Fonts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1140.16 ▲2.03
Dashboard /wp-admin3.41 ▲0.1151.15 ▲0.14
Posts /wp-admin/edit.php3.52 ▲0.1749.18 ▼2.96
Add New Post /wp-admin/post-new.php5.99 ▲0.1185.70 ▼25.73
Media Library /wp-admin/upload.php3.33 ▲0.1037.79 ▲2.01

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Design Palette Pro - Google Web Fonts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.431.69 ▼0.2945.68 ▲3.36
Dashboard /wp-admin2,198 ▲215.67 ▲0.0584.18 ▼3.3539.39 ▼6.08
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0233.96 ▼2.9837.47 ▲2.15
Add New Post /wp-admin/post-new.php1,531 ▲523.19 ▲0.13663.89 ▲42.6051.21 ▼0.50
Media Library /wp-admin/upload.php1,400 ▲64.21 ▲0.0396.73 ▼13.1748.34 ▲3.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DPP\\Webfonts\\add_action() in wp-content/plugins/gppro-google-webfonts/lib/class-legacy.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gppro-google-webfonts/lib/legacy-font-stacks.php:623
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gppro-google-webfonts/lib/setting-api-key.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gppro-google-webfonts/lib/admin.php:56
    • > PHP Fatal error
      Uncaught Error: Class 'DPP\\Admin\\Fonts\\Source' not found in wp-content/plugins/gppro-google-webfonts/lib/class-google.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/gppro-google-webfonts/gppro-google-webfonts.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: google web fonts, genesis design, design palette pro

gppro-google-webfonts/gppro-google-webfonts.php Passed 13 tests

Analyzing the main PHP file in "Genesis Design Palette Pro - Google Web Fonts" version 2.0.1
60 characters long description:
Adds a set of popular Google Web Fonts to Design Palette Pro

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,330 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP62954581,137
PO File15858141
Markdown124052

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity30.33
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods32
▷ Static methods721.88%
▷ Public methods1856.25%
▷ Protected methods1340.62%
▷ Private methods13.12%
Functions12
▷ Named functions12100.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 files were detected