84% rd-fontawesome

Code Review | Rundiz Font Awesome

WordPress plugin Rundiz Font Awesome scored84%from 54 tests.

About plugin

  • Plugin page: rd-fontawesome
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2022
  • Latest release: Dec 20, 2022
  • Number of updates: 6
  • Update frequency: every 55.5 days
  • Top authors: okvee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /611 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲2.66ms] Passed 4 tests

Server-side resources used by Rundiz Font Awesome
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0446.17 ▲6.02
Dashboard /wp-admin3.40 ▲0.1055.57 ▲6.17
Posts /wp-admin/edit.php3.45 ▲0.0954.75 ▲0.98
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.02 ▼2.53
Media Library /wp-admin/upload.php3.26 ▲0.0341.77 ▲7.43
Rundiz Font Awesome /wp-admin/options-general.php?page=rd-fontawesome-settings3.3040.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Rundiz Font Awesome
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.001.82 ▲0.1544.08 ▼3.56
Dashboard /wp-admin2,199 ▲195.58 ▼0.0695.21 ▲7.7641.08 ▲0.01
Posts /wp-admin/edit.php2,104 ▼32.03 ▲0.0333.94 ▼7.1735.84 ▼0.41
Add New Post /wp-admin/post-new.php1,529 ▲323.67 ▲0.46694.05 ▲3.7752.67 ▼0.94
Media Library /wp-admin/upload.php1,401 ▲14.12 ▼0.08112.51 ▲9.4648.49 ▲3.63
Rundiz Font Awesome /wp-admin/options-general.php?page=rd-fontawesome-settings1,0912.0326.6228.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'RdFontAwesome\\App\\Controllers\\BaseController' not found in wp-content/plugins/rd-fontawesome/App/Controllers/Admin/SettingsAjax.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'RdFontAwesome\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rd-fontawesome/App/Controllers/BaseController.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'RdFontAwesome\\App\\Controllers\\BaseController' not found in wp-content/plugins/rd-fontawesome/App/Controllers/Admin/Activation.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'RdFontAwesome\\App\\Controllers\\BaseController' not found in wp-content/plugins/rd-fontawesome/App/Controllers/Front/Hooks/PrintScriptsScanDequeue.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'RdFontAwesome\\App\\Controllers\\BaseController' not found in wp-content/plugins/rd-fontawesome/App/Controllers/Front/Hooks/EnqueueDequeue.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rd-fontawesome/App/Views/admin/settings_v.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function RdFontAwesome\\App\\add_action() in wp-content/plugins/rd-fontawesome/App/App.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'RdFontAwesome\\App\\Controllers\\BaseController' not found in wp-content/plugins/rd-fontawesome/App/Controllers/Admin/Settings.php:15
    • > PHP Fatal error
      Trait 'RdFontAwesome\\App\\AppTrait' not found in wp-content/plugins/rd-fontawesome/App/App.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rd-fontawesome/App/Views/admin/settings_serverinfo_tab.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: font awesome, icons, fontawesome

rd-fontawesome/rd-fontawesome.php 92% from 13 tests

This is the main PHP file of "Rundiz Font Awesome" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("/App/languages")

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
Good job! No executable or dangerous file extensions detected1,907 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP203876961,498
JavaScript274108341
CSS117468

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity14.29
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces5
Interfaces1
Traits1
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods57
▷ Static methods23.51%
▷ Public methods4273.68%
▷ Protected methods1526.32%
▷ Private methods00.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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
No PNG images were found in this plugin