90% global-styles-mods

Code Review | Global Styles Mods - WordPress 5.9 fix

WordPress plugin Global Styles Mods - WordPress 5.9 fix scored90%from 54 tests.

About plugin

  • Plugin page: global-styles-mods
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Feb 11, 2022
  • Latest release: Oct 2, 2023
  • Number of updates: 12
  • Update frequency: every 49.8 days
  • Top authors: webmandesign (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /1,072 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Global Styles Mods - WordPress 5.9 fix
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.07 ▼3.97
Dashboard /wp-admin3.32 ▲0.0246.88 ▼4.61
Posts /wp-admin/edit.php3.37 ▲0.0144.94 ▼1.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.65 ▼6.57
Media Library /wp-admin/upload.php3.24 ▲0.0137.14 ▲3.42

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Global Styles Mods - WordPress 5.9 fix
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.371.74 ▼0.5648.38 ▲3.80
Dashboard /wp-admin2,198 ▲305.67 ▲0.0580.73 ▼23.3838.20 ▼11.24
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0134.35 ▼2.2734.38 ▼6.74
Add New Post /wp-admin/post-new.php1,526 ▼022.95 ▼0.65671.98 ▼16.4557.27 ▲3.52
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.0997.12 ▲2.1443.44 ▲2.05

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: global styles, wp59, font size, gutenberg, fix...

global-styles-mods/global-styles-mods.php 92% from 13 tests

"Global Styles Mods - WordPress 5.9 fix" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 156 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected56 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14110451
Markdown1405

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There are no PNG files in this plugin