83% glyphs-company

Code Review | Glyphs.co

WordPress plugin Glyphs.co scored 83% from 54 tests.

About plugin

  • Plugin page: glyphs-company
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.1
  • WordPress version: 6.3.1
  • First release: May 4, 2016
  • Latest release: May 6, 2016
  • Number of updates: 10
  • Update frequency: every 0.8 days
  • Top authors: glyphsco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.92ms] Passed 4 tests

This is a short check of server-side resources used by Glyphs.co
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.28 ▼0.63
Dashboard /wp-admin3.33 ▲0.0246.85 ▼3.18
Posts /wp-admin/edit.php3.38 ▲0.0248.16 ▼0.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.62 ▼15.56
Media Library /wp-admin/upload.php3.25 ▲0.0240.30 ▲3.26

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Glyphs.co: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /357 ▼2,3784.52 ▼9.851.76 ▼0.7439.00 ▼8.43
Dashboard /wp-admin2,225 ▲404.85 ▼0.0296.90 ▼3.8244.20 ▼2.64
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0134.06 ▼9.2539.09 ▲4.36
Add New Post /wp-admin/post-new.php1,607 ▲9318.20 ▲0.62565.45 ▼119.4351.38 ▼0.44
Media Library /wp-admin/upload.php1,404 ▲164.22 ▲0.01100.77 ▼14.6269.48 ▲22.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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
Everything seems fine, however this is by no means 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/glyphs-company/glyphsco.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === glyphs-company === )
The official readme.txt might help

glyphs-company/glyphsco.php 85% from 13 tests

The primary PHP file in "Glyphs.co" version 0.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("glyphs-company.php" instead of "glyphsco.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected136 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2442791
CSS114245

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/glyphs-squares.png5.33KB2.16KB▼ 59.50%
img/glyphs-squares-16px.png0.44KB0.38KB▼ 13.33%
img/glyphs-logo.png18.82KB6.26KB▼ 66.74%