84% lobia

Code Review | Lobia - Persian fonts package

WordPress plugin Lobia - Persian fonts package scored 84% from 54 tests.

About plugin

  • Plugin page: lobia
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2020
  • Latest release: Jun 3, 2022
  • Number of updates: 25
  • Update frequency: every 23.0 days
  • Top authors: davidganji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,250 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.36ms] Passed 4 tests

An overview of server-side resources used by Lobia - Persian fonts package
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.67 ▼2.22
Dashboard /wp-admin3.31 ▲0.0146.20 ▼1.46
Posts /wp-admin/edit.php3.36 ▲0.0148.01 ▼2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.57 ▼10.48
Media Library /wp-admin/upload.php3.23 ▲0.0132.44 ▼2.58

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Lobia - Persian fonts package
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.48 ▲0.101.71 ▼0.0465.86 ▲27.31
Dashboard /wp-admin2,239 ▲545.84 ▲0.92107.40 ▲5.2699.06 ▲53.36
Posts /wp-admin/edit.php2,125 ▲332.03 ▲0.0639.00 ▼1.3637.92 ▲1.95
Add New Post /wp-admin/post-new.php1,554 ▲3418.10 ▼5.09628.61 ▼51.3061.40 ▼3.35
Media Library /wp-admin/upload.php1,421 ▲364.27 ▲0.0298.03 ▼5.0672.67 ▲30.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/lobia/info.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
There were no plugin tags found

lobia/lobia.php Passed 13 tests

The primary PHP file in "Lobia - Persian fonts package" version 1.0.2 is used by WordPress to initiate all plugin functionality
93 characters long description:
Lobia Persian Fonts Package (Shabnam, Vazir, Sahel, Tanha, Parastoo, Samim, Gandom, Estedad )

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected400 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS3675283
PHP38537117

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
5 PNG files occupy 0.29MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png47.26KB22.75KB▼ 51.87%
screenshot-4.png73.64KB34.40KB▼ 53.29%
screenshot-3.png38.05KB18.41KB▼ 51.62%
screenshot-1.png134.82KB59.18KB▼ 56.10%
img/icon.png1.50KB0.79KB▼ 47.27%