84% wp-cb-fontawesome

Code Review | Wp Fontawesome by Creareblogs.net

WordPress plugin Wp Fontawesome by Creareblogs.net scored84%from 54 tests.

About plugin

  • Plugin page: wp-cb-fontawesome
  • Plugin version: 0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 13, 2018
  • Latest release: Apr 14, 2018
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: creareblogs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

This is a short check of server-side resources used by Wp Fontawesome by Creareblogs.net
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.59 ▼0.85
Dashboard /wp-admin3.31 ▲0.0143.42 ▼2.66
Posts /wp-admin/edit.php3.36 ▲0.0141.52 ▼6.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.20 ▲2.58
Media Library /wp-admin/upload.php3.24 ▲0.0132.70 ▼1.35

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Wp Fontawesome by Creareblogs.net: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.57 ▲0.229.50 ▲7.9143.05 ▼2.44
Dashboard /wp-admin2,192 ▲125.52 ▼0.1482.03 ▼3.8936.59 ▼8.20
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0233.27 ▼6.5131.99 ▼8.31
Add New Post /wp-admin/post-new.php1,526 ▼1123.00 ▲4.87665.66 ▲51.8549.78 ▼14.90
Media Library /wp-admin/upload.php1,397 ▲34.33 ▲0.20108.73 ▲10.8045.74 ▲3.71

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at 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-cb-fontawesome/hello.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-cb-fontawesome === )
The official readme.txt might help

wp-cb-fontawesome/hello.php 92% from 13 tests

The main PHP file in "Wp Fontawesome by Creareblogs.net" ver. 0.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: The principal plugin file should be the same as the plugin slug ("wp-cb-fontawesome.php" instead of "hello.php")

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
Everything looks great! No dangerous files found in this plugin15 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP141614
JavaScript1041

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin