90% wp-font-manager

Code Review | WP Font Manager

WordPress plugin WP Font Manager scored90%from 54 tests.

About plugin

  • Plugin page: wp-font-manager
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Aug 12, 2017
  • Number of updates: 4
  • Update frequency: every 32.0 days
  • Top authors: mightyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.40ms] Passed 4 tests

A check of server-side resources used by WP Font Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0842.29 ▲6.29
Dashboard /wp-admin3.39 ▲0.0844.28 ▼3.01
Posts /wp-admin/edit.php3.44 ▲0.0848.30 ▲1.62
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.70 ▼10.49
Media Library /wp-admin/upload.php3.31 ▲0.0835.63 ▼1.72

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

WP Font Manager: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8614.27 ▲0.081.99 ▲0.4046.22 ▲1.71
Dashboard /wp-admin2,228 ▲515.69 ▲0.1184.46 ▼1.4137.83 ▼4.08
Posts /wp-admin/edit.php2,133 ▲332.01 ▲0.0440.35 ▲2.8035.76 ▲0.96
Add New Post /wp-admin/post-new.php1,544 ▲1623.04 ▼0.10613.76 ▼67.7051.87 ▼4.52
Media Library /wp-admin/upload.php1,433 ▲334.17 ▲0.0094.87 ▼19.5243.91 ▼6.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 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
4 plugin tags: font manager, google font, add font, font

wp-font-manager/wp-font-manager.php Passed 13 tests

"WP Font Manager" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
WP Font Manager for managing your site google font.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected28,097 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript104,1218,79020,367
CSS871954,786
SVG1002,671
PHP360106273

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin