84% unofficial-braille-institute-founder-font

Code Review | WordPress plugin for unofficial Braille Institute founder font

WordPress plugin WordPress plugin for unofficial Braille Institute founder font scored84%from 54 tests.

About plugin

  • Plugin page: unofficial-braill...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Aug 31, 2021
  • Latest release: Aug 31, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: milosz.galazka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /255 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.92ms] Passed 4 tests

This is a short check of server-side resources used by WordPress plugin for unofficial Braille Institute founder font
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.29 ▼10.79
Dashboard /wp-admin3.31 ▲0.0150.82 ▼3.52
Posts /wp-admin/edit.php3.36 ▲0.0049.27 ▼5.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.05 ▼24.09
Media Library /wp-admin/upload.php3.23 ▲0.0043.16 ▼1.15

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

WordPress plugin for unofficial Braille Institute founder font: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.28 ▼0.311.89 ▼0.1362.22 ▲14.27
Dashboard /wp-admin2,192 ▲155.62 ▼0.0589.67 ▼14.4639.50 ▼5.95
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0339.59 ▼1.4132.78 ▼6.30
Add New Post /wp-admin/post-new.php1,409 ▼12217.80 ▼5.29643.45 ▼48.3445.43 ▼6.41
Media Library /wp-admin/upload.php1,397 ▼04.12 ▼0.07114.27 ▼6.9050.89 ▲5.83

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
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BrInFoFo\\Style\\add_action() in wp-content/plugins/unofficial-braille-institute-founder-font/includes/style.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BrInFoFo\\Style\\add_action() in wp-content/plugins/unofficial-braille-institute-founder-font/includes/style.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: font

unofficial-braille-institute-founder-font/brinfofo.php 92% from 13 tests

The principal PHP file in "WordPress plugin for unofficial Braille Institute founder font" v. 1.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("unofficial-braille-institute-founder-font.php" instead of "brinfofo.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
Success! There were no dangerous files found in this plugin43 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS16033
PHP251210

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin