84% fonts-typo

Code Review | Fonts Typo | Fonts Typography

WordPress plugin Fonts Typo | Fonts Typography scored84%from 54 tests.

About plugin

  • Plugin page: fonts-typo
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3.0
  • WordPress version: 6.3.1
  • First release: Aug 21, 2023
  • Latest release: Aug 23, 2023
  • Number of updates: 14
  • Update frequency: every 0.2 days
  • Top authors: peacefulqode (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.11ms] Passed 4 tests

Server-side resources used by Fonts Typo | Fonts Typography
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1435.89 ▼5.86
Dashboard /wp-admin3.44 ▲0.1445.11 ▼6.53
Posts /wp-admin/edit.php3.56 ▲0.2046.55 ▲3.03
Add New Post /wp-admin/post-new.php6.04 ▲0.1693.61 ▼5.08
Media Library /wp-admin/upload.php3.37 ▲0.1438.50 ▲1.03

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Fonts Typo | Fonts Typography
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.30 ▼1.471.93 ▼0.0138.70 ▼6.48
Dashboard /wp-admin2,221 ▲335.90 ▲1.03107.97 ▼9.0477.46 ▲31.99
Posts /wp-admin/edit.php2,104 ▲152.01 ▼0.1339.54 ▲3.2235.97 ▼5.55
Add New Post /wp-admin/post-new.php1,533 ▲1923.17 ▲5.38674.09 ▼5.8948.46 ▼6.16
Media Library /wp-admin/upload.php1,406 ▲184.17 ▼0.04114.15 ▲10.6247.45 ▲3.56

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 2× 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/fonts-typo/includes/customizer/style/fonts-typo-style.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fonts-typo/includes/customizer/fonts-typo-customizer.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Fonts typo tab in wp dashboard), #2 (Fonts typo settings in customizer)
The official readme.txt might help

fonts-typo/fonts-typo-core.php 92% from 13 tests

The main file in "Fonts Typo | Fonts Typography" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fonts-typo.php" instead of "fonts-typo-core.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin832 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10264404754
CSS112075
JavaScript1102
Markdown1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity2.17
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1780.95%
▷ Protected methods00.00%
▷ Private methods419.05%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/typo_icon.png10.00KB4.71KB▼ 52.90%
assets/img/typo_icon_bkp.png8.06KB8.05KB0.15%