84% parane-font-manager

Code Review | Parane Font Manager

WordPress plugin Parane Font Manager scored 84% from 54 tests.

About plugin

  • Plugin page: parane-font-manager
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jul 28, 2018
  • Latest release: Jul 28, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: parham13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 599 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲2.77ms] Passed 4 tests

A check of server-side resources used by Parane Font Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.53 ▲4.33
Dashboard /wp-admin3.38 ▲0.0854.69 ▲4.90
Posts /wp-admin/edit.php3.49 ▲0.1449.72 ▲3.89
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.75 ▲3.52
Media Library /wp-admin/upload.php3.28 ▲0.0534.98 ▼0.66
Font Manager /wp-admin/themes.php?page=pfm_fontManager-admin3.4234.79

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Parane Font Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲22115.18 ▲0.881.85 ▲0.0341.92 ▲1.25
Dashboard /wp-admin2,360 ▲1696.72 ▲0.82143.62 ▲39.6943.35 ▼5.61
Posts /wp-admin/edit.php2,266 ▲1803.66 ▲1.6950.23 ▲13.9729.21 ▼3.97
Add New Post /wp-admin/post-new.php1,537 ▲318.60 ▼4.54590.20 ▼101.2035.02 ▼13.67
Media Library /wp-admin/upload.php1,405 ▲204.29 ▲0.0684.40 ▼17.8440.37 ▼3.92
Font Manager /wp-admin/themes.php?page=pfm_fontManager-admin1,2553.3748.6226.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/parane-font-manager/PFM-fontManager.php:207

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
7 plugin tags: font manager, font uploader, parane font manager, embed font, add font...

parane-font-manager/PFM-fontManager.php 85% from 13 tests

The main file in "Parane Font Manager" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("parane-font-manager.php" instead of "PFM-fontManager.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
Everything looks great! No dangerous files found in this plugin7,916 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS24147,131
JavaScript23112510
PHP22622210
PO File1232365

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin