78% perfect-font-awesome-integration

Code Review | Perfect Font Awesome Integration

WordPress plugin Perfect Font Awesome Integration scored78%from 54 tests.

About plugin

  • Plugin page: perfect-font-awes...
  • Plugin version: 2.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Aug 4, 2022
  • Number of updates: 22
  • Update frequency: every 107.3 days
  • Top authors: kaushik07 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,851 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 gracefully, with no errors

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

A check of server-side resources used by Perfect Font Awesome Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.22 ▼5.94
Dashboard /wp-admin3.31 ▲0.0148.17 ▼3.35
Posts /wp-admin/edit.php3.36 ▲0.0146.63 ▼5.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.43 ▼24.66
Media Library /wp-admin/upload.php3.23 ▲0.0140.52 ▲7.01

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Perfect Font Awesome Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.16 ▼1.061.74 ▼0.2041.42 ▼2.89
Dashboard /wp-admin2,222 ▲375.83 ▼0.0699.07 ▼38.7692.85 ▲52.73
Posts /wp-admin/edit.php2,102 ▲132.02 ▲0.0333.08 ▼6.6632.54 ▼2.76
Add New Post /wp-admin/post-new.php1,679 ▲15722.65 ▼0.27679.86 ▼23.3554.86 ▼3.41
Media Library /wp-admin/upload.php1,398 ▲104.22 ▼0.01105.22 ▼4.7165.24 ▲21.56

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
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/perfect-font-awesome-integration/admin/admin-page.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/perfect-font-awesome-integration/perfect-font-awesome-integration.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Insert the shortcode) image not found
You can look at the official readme.txt

perfect-font-awesome-integration/perfect-font-awesome-integration.php Passed 13 tests

The main PHP script in "Perfect Font Awesome Integration" version 2.2 is automatically included on every request by WordPress
128 characters long description:
Perfectly Integrates latest font awesome icons with your wordpress blog as well as adds an Icon insert button in Classic Editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin17,912 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
CSS143,669608,099
PHP2359172
JavaScript10089

PHP code Passed 2 tests

This is a very shot 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.04
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.74MB with 0.37MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wmis.png455.49KB145.95KB▼ 67.96%
images/favicon.png10.09KB4.83KB▼ 52.14%
images/logo.png3.88KB3.28KB▼ 15.41%
images/gmis.png286.74KB95.15KB▼ 66.82%