84% seed-fonts

Code Review | Seed Fonts

WordPress plugin Seed Fonts scored84%from 54 tests.

About plugin

  • Plugin page: seed-fonts
  • Plugin version: 2.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 17, 2016
  • Latest release: Aug 8, 2023
  • Number of updates: 83
  • Update frequency: every 31.8 days
  • Top authors: SeedThemes (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

20,000+ active /152,562 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.08MB] [CPU: ▼0.14ms] Passed 4 tests

An overview of server-side resources used by Seed Fonts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.75 ▲3.03
Dashboard /wp-admin3.40 ▲0.0947.49 ▼0.48
Posts /wp-admin/edit.php3.45 ▲0.0945.87 ▲1.18
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.92 ▼3.81
Media Library /wp-admin/upload.php3.32 ▲0.0934.26 ▲2.56
Fonts /wp-admin/themes.php?page=seed-fonts3.3035.19

Server storage [IO: ▲5.47MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Seed Fonts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.091.70 ▼0.0146.37 ▲0.06
Dashboard /wp-admin2,207 ▲194.85 ▼1.05112.80 ▼1.0942.46 ▼3.08
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0237.56 ▲1.3032.58 ▼5.68
Add New Post /wp-admin/post-new.php1,536 ▲2223.28 ▲5.74625.79 ▼32.9561.17 ▲6.99
Media Library /wp-admin/upload.php1,386 ▼24.20 ▼0.0692.82 ▼3.9439.33 ▼4.56
Fonts /wp-admin/themes.php?page=seed-fonts1,7922.0936.4230.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seed-fonts/seed-fonts.php:30

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 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #2 is required in seed-fonts/assets to your readme.txt
You can look at the official readme.txt

seed-fonts/seed-fonts.php 92% from 13 tests

"Seed Fonts" version 2.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 232 characters long)

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
Success! There were no dangerous files found in this plugin1,343 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP199124615
CSS151056558
JavaScript1326170

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin