90% skaut-font

Code Review | Scout fonts

WordPress plugin Scout fonts scored90%from 54 tests.

About plugin

  • Plugin page: skaut-font
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 8, 2017
  • Latest release: Apr 3, 2023
  • Number of updates: 40
  • Update frequency: every 52.4 days
  • Top authors: skaut (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /2,827 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.15MB] [CPU: ▲1.50ms] Passed 4 tests

This is a short check of server-side resources used by Scout fonts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1148.01 ▲5.12
Dashboard /wp-admin3.47 ▲0.1757.48 ▲1.89
Posts /wp-admin/edit.php3.59 ▲0.2355.52 ▲5.04
Add New Post /wp-admin/post-new.php6.05 ▲0.1697.46 ▼6.06
Media Library /wp-admin/upload.php3.40 ▲0.1644.62 ▲5.75
Scout fonts /wp-admin/themes.php?page=skaut-font3.3637.03

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
skaut-font_style_site-desc
widget_recent-comments
db_upgraded
skaut-font_style_titles
skaut-font_style_body
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Scout fonts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.10 ▼0.551.92 ▼0.1065.50 ▲21.31
Dashboard /wp-admin2,199 ▲195.63 ▲0.0188.46 ▼2.3542.45 ▼1.89
Posts /wp-admin/edit.php2,101 ▼22.02 ▲0.0436.10 ▼4.7635.11 ▼3.35
Add New Post /wp-admin/post-new.php1,529 ▲321.21 ▼1.92657.43 ▼54.1847.69 ▼11.89
Media Library /wp-admin/upload.php1,401 ▲14.24 ▲0.08106.64 ▼16.5551.62 ▲2.11
Scout fonts /wp-admin/themes.php?page=skaut-font9192.0529.6028.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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: font, plugin, multisite, skaut

skaut-font/skaut-font.php Passed 13 tests

"Scout fonts" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Tento plugin přidává na web skautské fonty SKAUT Bold a TheMix

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin835 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11166168780
CSS14054
JSON1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity13.71
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes228.57%
Methods58
▷ Static methods1118.97%
▷ Public methods4781.03%
▷ Protected methods46.90%
▷ Private methods712.07%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants5
▷ Global constants5100.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