84% surbma-font-awesome

Code Review | Surbma | Font Awesome

WordPress plugin Surbma | Font Awesome scored84%from 54 tests.

About plugin

  • Plugin page: surbma-font-awesome
  • Plugin version: 3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: Apr 8, 2023
  • Number of updates: 25
  • Update frequency: every 120.0 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,300 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.01MB] [CPU: ▼6.52ms] Passed 4 tests

An overview of server-side resources used by Surbma | Font Awesome
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.06 ▼2.16
Dashboard /wp-admin3.31 ▲0.0145.81 ▼3.45
Posts /wp-admin/edit.php3.36 ▲0.0149.50 ▼1.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.48 ▼19.01
Media Library /wp-admin/upload.php3.23 ▲0.0137.78 ▼1.05

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Surbma | Font Awesome
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.14 ▼1.216.00 ▲3.8838.97 ▼8.76
Dashboard /wp-admin2,206 ▲184.83 ▼0.02106.28 ▼1.4939.49 ▼1.56
Posts /wp-admin/edit.php2,086 ▼62.01 ▲0.0136.11 ▲1.8631.84 ▼3.73
Add New Post /wp-admin/post-new.php1,519 ▲522.96 ▲5.24652.91 ▼27.8054.43 ▲3.91
Media Library /wp-admin/upload.php1,382 ▼64.22 ▲0.10106.01 ▼13.9443.82 ▼5.12

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/surbma-font-awesome/surbma-font-awesome.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
4 plugin tags: font awesome, icons, icon font, fontawesome

surbma-font-awesome/surbma-font-awesome.php Passed 13 tests

The main PHP script in "Surbma | Font Awesome" version 3.0 is automatically included on every request by WordPress
46 characters long description:
Font Awesome - The iconic font and CSS toolkit

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 plugin65 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File171833
PHP1101328
Markdown1204

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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
Namespaces0
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin