84% navthemes-fontawesome-icons

Code Review | NavThemes FontAwesome Icons

WordPress plugin NavThemes FontAwesome Icons scored84%from 54 tests.

About plugin

  • Plugin page: navthemes-fontawe...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2019
  • Latest release: Apr 20, 2019
  • Number of updates: 7
  • Update frequency: every 15.4 days
  • Top authors: navthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /767 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.25MB] [CPU: ▼9.65ms] Passed 4 tests

Server-side resources used by NavThemes FontAwesome Icons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.60 ▲0.24
Dashboard /wp-admin3.32 ▲0.0253.62 ▲1.92
Posts /wp-admin/edit.php3.37 ▲0.0249.82 ▲0.86
Add New Post /wp-admin/post-new.php4.83 ▼1.0554.48 ▼39.72
Media Library /wp-admin/upload.php3.24 ▲0.0238.12 ▲0.01

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

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

Browser metrics Passed 4 tests

A check of browser resources used by NavThemes FontAwesome Icons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.63 ▼0.745.85 ▲4.0343.20 ▼0.67
Dashboard /wp-admin2,205 ▲175.83 ▲0.04100.88 ▼4.9738.44 ▼1.57
Posts /wp-admin/edit.php2,091 ▲22.02 ▲0.0033.30 ▼4.0834.17 ▼2.39
Add New Post /wp-admin/post-new.php6,354 ▲4,81829.09 ▲5.69925.05 ▲247.3857.16 ▼10.06
Media Library /wp-admin/upload.php1,384 ▼44.19 ▼0.0196.21 ▼21.3641.93 ▼7.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/navthemes-fontawesome-icons/navthemesfa.php:31

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: gutenberg, blocks

navthemes-fontawesome-icons/navthemesfa.php 85% from 13 tests

The main PHP script in "NavThemes FontAwesome Icons" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("navthemes-fontawesome-icons.php" instead of "navthemesfa.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected22,819 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS35,6933718,004
SVG30124,482
JavaScript2110218271
PHP1252762

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin