79% attach-font-awesome

Code Review | Attach Font Awesome

WordPress plugin Attach Font Awesome scored79%from 54 tests.

About plugin

  • Plugin page: attach-font-awesome
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 3, 2017
  • Latest release: Jul 3, 2017
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: afshintalebi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /691 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.85ms] Passed 4 tests

This is a short check of server-side resources used by Attach Font Awesome
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.13 ▲1.75
Dashboard /wp-admin3.34 ▲0.0343.53 ▼7.42
Posts /wp-admin/edit.php3.39 ▲0.0344.60 ▼5.09
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.84 ▼4.65
Media Library /wp-admin/upload.php3.26 ▲0.0335.08 ▲3.87
Attach Font Awesome /wp-admin/options-general.php?page=atchfa-plugin-options3.2334.40

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Attach Font Awesome
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.46 ▲0.171.81 ▲0.1642.58 ▼4.44
Dashboard /wp-admin2,209 ▲274.87 ▼0.04111.82 ▲4.5343.21 ▼1.31
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0139.05 ▼4.6835.55 ▼1.89
Add New Post /wp-admin/post-new.php1,380 ▼15318.78 ▼4.59501.13 ▼115.1748.64 ▲0.10
Media Library /wp-admin/upload.php1,397 ▲154.22 ▼0.0497.27 ▼0.6742.21 ▼1.12
Attach Font Awesome /wp-admin/options-general.php?page=atchfa-plugin-options9032.1833.1827.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/attach-font-awesome/attach-font-awesome.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/attach-font-awesome/inc/data.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

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

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

The principal PHP file in "Attach Font Awesome" v. 0.1 is loaded by WordPress automatically on each request
41 characters long description:
add font awesome library to front of site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,897 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP4846141
PO File2161756
JavaScript10228
CSS1031

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin