78% eds-font-awesome

Code Review | Ed's Font Awesome

WordPress plugin Ed's Font Awesome scored78%from 54 tests.

About plugin

  • Plugin page: eds-font-awesome
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2021
  • Latest release: Sep 7, 2022
  • Number of updates: 25
  • Update frequency: every 22.0 days
  • Top authors: waianaeboy702 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /436 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Ed's Font Awesome
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.98 ▼0.58
Dashboard /wp-admin3.36 ▲0.0650.47 ▲5.10
Posts /wp-admin/edit.php3.41 ▲0.0550.35 ▼3.73
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.85 ▼10.97
Media Library /wp-admin/upload.php3.28 ▲0.0540.96 ▲2.91
Plugin Options /wp-admin/admin.php?page=efa_options_admin_page3.2531.67
Dashboard /wp-admin/admin.php?page=efa_dashboard_admin_page3.2632.55

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Ed's Font Awesome: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲10717.20 ▲2.907.43 ▲5.6329.41 ▼15.79
Dashboard /wp-admin2,244 ▲627.41 ▲2.50119.09 ▲11.6052.49 ▲5.32
Posts /wp-admin/edit.php2,127 ▲384.12 ▲2.1147.99 ▲6.7144.38 ▲7.48
Add New Post /wp-admin/post-new.php6,471 ▲4,93826.23 ▲2.73921.29 ▲332.4045.17 ▼5.52
Media Library /wp-admin/upload.php1,426 ▲386.75 ▲2.52121.17 ▲18.6252.70 ▲8.66
Plugin Options /wp-admin/admin.php?page=efa_options_admin_page1,0244.1743.2950.08
Dashboard /wp-admin/admin.php?page=efa_dashboard_admin_page1,2494.4642.2678.81

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eds-font-awesome/eds_font_awesome.php:63

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=efa_dashboard_admin_page
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:11743 Uncaught Error: Syntax error, unrecognized expression: body[class*= post-type-efa_"]

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: eds font awesome plugin, font awesome mask, free icons, icons, font awesome icons...

eds-font-awesome/eds_font_awesome.php 85% from 13 tests

The entry point to "Ed's Font Awesome" version 1.0.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eds-font-awesome.php" instead of "eds_font_awesome.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
Good job! No executable or dangerous file extensions detected53,908 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS166,58211033,485
JavaScript233,9582,40220,120
PHP1190115303

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected