84% cfs-font-awesome

Code Review | CFS Font Awesome

WordPress plugin CFS Font Awesome scored 84% from 54 tests.

About plugin

  • Plugin page: cfs-font-awesome
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.5
  • WordPress version: 6.3.1
  • First release: Dec 17, 2015
  • Latest release: Apr 19, 2016
  • Number of updates: 8
  • Update frequency: every 15.7 days
  • Top authors: chetan200891 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 4,288 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.02MB] [CPU: ▼11.57ms] Passed 4 tests

Analyzing server-side resources used by CFS Font Awesome
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.79 ▼5.09
Dashboard /wp-admin3.31 ▼0.0748.24 ▼29.49
Posts /wp-admin/edit.php3.36 ▲0.0044.86 ▼2.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.82 ▼6.32
Media Library /wp-admin/upload.php3.23 ▲0.0031.03 ▼5.37

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for CFS Font Awesome
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.64 ▼0.731.73 ▼0.1039.78 ▼9.54
Dashboard /wp-admin2,209 ▲184.86 ▲0.02110.48 ▲7.1839.98 ▼1.93
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0240.33 ▲3.1635.18 ▲1.57
Add New Post /wp-admin/post-new.php1,542 ▲2818.31 ▲0.70625.64 ▼64.2761.74 ▲11.18
Media Library /wp-admin/upload.php1,385 ▼04.29 ▲0.0298.50 ▼3.9743.89 ▼1.96

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

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

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 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/cfs-font-awesome/cfs-font-awesome-field.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: font awesome, cfs, custom field suite, field type, fontaweosme field cfs

cfs-font-awesome/cfs-font-awesome.php 92% from 13 tests

The entry point to "CFS Font Awesome" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected68 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2152266
CSS1081
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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 images were found in this plugin