84% post-featured-font-icon

Code Review | Post Featured Font Icon

WordPress plugin Post Featured Font Icon scored84%from 54 tests.

About plugin

  • Plugin page: post-featured-fon...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.8-5.1
  • WordPress version: 6.3.1
  • First release: Apr 25, 2014
  • Latest release: May 3, 2016
  • Number of updates: 31
  • Update frequency: every 23.8 days
  • Top authors: kishores (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,780 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Post Featured Font Icon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.15 ▼8.80
Dashboard /wp-admin3.31 ▲0.0151.93 ▼6.69
Posts /wp-admin/edit.php3.37 ▲0.0151.17 ▲2.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.65 ▼10.54
Media Library /wp-admin/upload.php3.24 ▲0.0136.59 ▼1.09

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Post Featured Font Icon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲12313.83 ▼0.558.48 ▲6.5841.13 ▼5.27
Dashboard /wp-admin2,206 ▲355.68 ▲0.1089.00 ▼5.1339.11 ▼0.76
Posts /wp-admin/edit.php2,111 ▲112.00 ▲0.0340.60 ▲1.9934.53 ▼3.07
Add New Post /wp-admin/post-new.php6,240 ▲4,71226.06 ▲2.92841.75 ▲153.3653.17 ▼11.29
Media Library /wp-admin/upload.php1,402 ▲24.20 ▲0.01102.02 ▼0.1444.24 ▼0.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% 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 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-featured-font-icon/post-featured-font-icon.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: font-icon, dashicons, genericons, title, font-awesome...

post-featured-font-icon/post-featured-font-icon.php 85% from 13 tests

"Post Featured Font Icon" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 3.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,878 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
CSS433341,562
Sass131922928
LESS121827907
JavaScript12227765
SVG200549
PHP15861167

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin