90% glyph-generator

Code Review | Glyph Generator

WordPress plugin Glyph Generator scored 90% from 54 tests.

About plugin

  • Plugin page: glyph-generator
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Jan 27, 2021
  • Latest release: Jan 27, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: indras3hat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 441 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Glyph Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.66 ▼8.35
Dashboard /wp-admin3.31 ▲0.0145.58 ▼1.73
Posts /wp-admin/edit.php3.36 ▲0.0151.04 ▲0.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.73 ▲2.14
Media Library /wp-admin/upload.php3.24 ▲0.0136.49 ▲3.26

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Glyph Generator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.67 ▼0.7811.06 ▲9.1040.78 ▼8.98
Dashboard /wp-admin2,206 ▲215.90 ▲0.04109.24 ▲2.7742.25 ▼0.37
Posts /wp-admin/edit.php2,086 ▼62.02 ▲0.0140.72 ▼0.6434.77 ▼3.29
Add New Post /wp-admin/post-new.php1,547 ▲1418.46 ▼4.54609.38 ▲15.4760.79 ▲10.29
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0096.01 ▲0.6942.98 ▲1.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: generator, opentype, glyph preview, font, inspector...

glyph-generator/glyph-generator.php Passed 13 tests

The main file in "Glyph Generator" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Generate your font's Glyph automatically, easily put the shortcode anywhere.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected10,245 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21,7382,8939,916
PHP9102437191
CSS121128
XML20010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods1680.00%
▷ Protected methods00.00%
▷ Private methods420.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin