90% simple-google-fonts

Code Review | Simple Gutenberg Google Fonts

WordPress plugin Simple Gutenberg Google Fonts scored90%from 54 tests.

About plugin

  • Plugin page: simple-google-fonts
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 5, 2018
  • Latest release: Oct 13, 2018
  • Number of updates: 13
  • Update frequency: every 0.6 days
  • Top authors: acosmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,651 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: ▼0.38ms] Passed 4 tests

Server-side resources used by Simple Gutenberg Google Fonts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9747.17 ▲7.56
Dashboard /wp-admin3.37 ▲0.0246.26 ▼14.37
Posts /wp-admin/edit.php3.42 ▲0.0750.74 ▲2.16
Add New Post /wp-admin/post-new.php5.91 ▲0.03102.73 ▲3.73
Media Library /wp-admin/upload.php3.29 ▲0.0640.82 ▲6.95

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Simple Gutenberg Google Fonts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.74 ▼0.571.61 ▼0.2739.31 ▼5.06
Dashboard /wp-admin2,209 ▲214.84 ▼1.06105.52 ▼1.1141.82 ▼2.61
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0337.93 ▼2.3732.51 ▼0.85
Add New Post /wp-admin/post-new.php1,566 ▲5223.70 ▲6.12632.94 ▼44.8052.37 ▲2.11
Media Library /wp-admin/upload.php1,388 ▲64.19 ▼0.0296.41 ▼1.5245.02 ▲2.00

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
No tags were detected

simple-google-fonts/simple-google-fonts.php 92% from 13 tests

The main file in "Simple Gutenberg Google Fonts" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin8,595 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JSON2006,731
JavaScript102212321,007
PHP6228314809
Sass16047
CSS1111

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions39
▷ Named functions3794.87%
▷ Anonymous functions25.13%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin