80% fonts-manager-custom-fonts

Code Review | Fonts Manager | Custom Fonts

WordPress plugin Fonts Manager | Custom Fonts scored80%from 54 tests.

About plugin

  • Plugin page: fonts-manager-cus...
  • Plugin version: 1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jun 16, 2023
  • Latest release: Aug 28, 2023
  • Number of updates: 6
  • Update frequency: every 12.2 days
  • Top authors: wisdomlogix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /427 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼0.15ms] Passed 4 tests

A check of server-side resources used by Fonts Manager | Custom Fonts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1944.55 ▼6.45
Dashboard /wp-admin3.50 ▲0.1956.58 ▲5.51
Posts /wp-admin/edit.php3.61 ▲0.2553.72 ▲3.94
Add New Post /wp-admin/post-new.php6.09 ▲0.2195.49 ▼3.45
Media Library /wp-admin/upload.php3.42 ▲0.1941.31 ▲5.36
Upload Fonts /wp-admin/admin.php?page=fmcf-upload-fonts-page3.3939.28
Color Settings /wp-admin/admin.php?page=fmcf-set-color3.7440.43
Local Fonts /wp-admin/admin.php?page=fmcf-predefined-fonts3.3940.47
Assign Fonts /wp-admin/admin.php?page=fmcf-assign-fonts3.4842.72
Google Fonts /wp-admin/admin.php?page=fmcf-google-fonts6.4746.89

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 65 new files
Database: 2 new tables, 6 new options
New tables
wp_fmcf_fonts_assign
wp_fmcf_fonts_list
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Fonts Manager | Custom Fonts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.35 ▼0.071.59 ▼0.1943.51 ▲1.28
Dashboard /wp-admin2,239 ▲625.56 ▲0.0396.32 ▲5.4772.37 ▲27.69
Posts /wp-admin/edit.php2,148 ▲482.02 ▲0.0335.24 ▼7.7931.04 ▼7.39
Add New Post /wp-admin/post-new.php1,573 ▲4723.19 ▼0.26719.47 ▲57.2159.88 ▲7.05
Media Library /wp-admin/upload.php1,441 ▲384.26 ▲0.03102.18 ▲4.9664.99 ▲20.56
Upload Fonts /wp-admin/admin.php?page=fmcf-upload-fonts-page9672.1527.6880.60
Color Settings /wp-admin/admin.php?page=fmcf-set-color1,7641.6725.9242.28
Local Fonts /wp-admin/admin.php?page=fmcf-predefined-fonts1,0201.9923.8036.49
Assign Fonts /wp-admin/admin.php?page=fmcf-assign-fonts1,2002.0425.9643.27
Google Fonts /wp-admin/admin.php?page=fmcf-google-fonts4,5222.0326.0233.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_fmcf_fonts_assign
    • wp_fmcf_fonts_list
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 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: custom fonts, change fonts, web font, google fonts, change font...

fonts-manager-custom-fonts/fonts-manager-custom-fonts.php 92% from 13 tests

The main PHP file in "Fonts Manager | Custom Fonts" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 221 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 plugin16,572 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON10014,295
PHP10344111,890
CSS100386
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity21.50
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions49
▷ Named functions4897.96%
▷ Anonymous functions12.04%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.23MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assests/images/icon.png0.35KB0.29KB▼ 18.18%
assests/font/brunoace.png10.71KB3.66KB▼ 65.82%
assests/font/opensans.png4.76KB2.50KB▼ 47.35%
assests/font/poppins.png4.60KB2.43KB▼ 47.26%
assests/font/kablammo.png24.27KB10.57KB▼ 56.44%