84% wp-font-awesome-share-icons

Code Review | WP Font Awesome Share Icons

WordPress plugin WP Font Awesome Share Icons scored 84% from 54 tests.

About plugin

  • Plugin page: wp-font-awesome-s...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7
  • WordPress version: 6.3.1
  • First release: Jun 25, 2014
  • Latest release: Mar 24, 2017
  • Number of updates: 32
  • Update frequency: every 31.4 days
  • Top authors: spyrosvl (90.63%)artifex404 (12.5%)

Code review

54 tests

User reviews

23 reviews

Install metrics

1,000+ active / 37,092 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.43ms] Passed 4 tests

An overview of server-side resources used by WP Font Awesome Share Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.87 ▲2.25
Dashboard /wp-admin3.41 ▲0.1050.41 ▲0.42
Posts /wp-admin/edit.php3.52 ▲0.1645.55 ▼7.46
Add New Post /wp-admin/post-new.php5.99 ▲0.1097.56 ▲5.40
Media Library /wp-admin/upload.php3.33 ▲0.1036.28 ▼0.91
Font-Awesome Share /wp-admin/options-general.php?page=wpfai3.3032.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Font Awesome Share Icons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.17 ▼1.231.98 ▲0.3644.12 ▲4.47
Dashboard /wp-admin2,207 ▲166.03 ▲0.1399.49 ▲0.2737.36 ▼3.24
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0036.97 ▼3.9034.68 ▼0.83
Add New Post /wp-admin/post-new.php1,517 ▼1717.75 ▼5.54637.73 ▼54.4158.87 ▼1.44
Media Library /wp-admin/upload.php1,392 ▲44.23 ▼0.0393.95 ▼24.9640.39 ▼7.39
Font-Awesome Share /wp-admin/options-general.php?page=wpfai1,3582.3434.6440.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-font-awesome-share-icons/wp-font-awesome-share.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt might help

wp-font-awesome-share-icons/wp-font-awesome-share.php 92% from 13 tests

The main PHP file in "WP Font Awesome Share Icons" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-font-awesome-share-icons.php" instead of "wp-font-awesome-share.php")

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
Success! There were no dangerous files found in this plugin5,631 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS34121,697
Sass1323241,256
LESS1323331,247
SVG100520
PHP36627503
PO File3114123397
JavaScript16011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions13
▷ Named functions13100.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
No PNG files were detected