84% frontend-dashicons

Code Review | Frontend Dashicons

WordPress plugin Frontend Dashicons scored84%from 54 tests.

About plugin

  • Plugin page: frontend-dashicons
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 11, 2016
  • Latest release: Aug 14, 2022
  • Number of updates: 10
  • Update frequency: every 225.6 days
  • Top authors: ericakfranz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /4,375 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.31ms] Passed 4 tests

Analyzing server-side resources used by Frontend Dashicons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.34 ▼0.86
Dashboard /wp-admin3.31 ▲0.0043.91 ▼4.97
Posts /wp-admin/edit.php3.36 ▲0.0048.92 ▲7.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.98 ▼17.59
Media Library /wp-admin/upload.php3.23 ▲0.0039.57 ▲2.19

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Frontend Dashicons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.64 ▼0.951.79 ▲0.0042.89 ▼0.96
Dashboard /wp-admin2,206 ▲214.88 ▼0.01109.14 ▲3.5440.56 ▼4.52
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0439.61 ▼1.5135.42 ▼0.43
Add New Post /wp-admin/post-new.php1,533 ▲523.53 ▲5.01671.19 ▲30.4450.64 ▼0.43
Media Library /wp-admin/upload.php1,391 ▲64.24 ▲0.00105.16 ▼10.2748.88 ▲1.59

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
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/frontend-dashicons/frontend-dashicons.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: dashicons

frontend-dashicons/frontend-dashicons.php Passed 13 tests

Analyzing the main PHP file in "Frontend Dashicons" version 1.0.2
59 characters long description:
Load the Dashicons icon font on the front-end of your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin25 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown113019
PHP1596

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected