84% kt-dashicons

Code Review | Dashicons Viewer

WordPress plugin Dashicons Viewer scored 84% from 54 tests.

About plugin

  • Plugin page: kt-dashicons
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 6.3.1
  • First release: Aug 21, 2017
  • Latest release: Aug 21, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: kungtiger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 628 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.39ms] Passed 4 tests

Server-side resources used by Dashicons Viewer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.41 ▼3.64
Dashboard /wp-admin3.32 ▲0.0244.93 ▼4.73
Posts /wp-admin/edit.php3.37 ▲0.0247.28 ▼2.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.10 ▼18.27
Media Library /wp-admin/upload.php3.24 ▲0.0233.64 ▼1.57
Dashicons /wp-admin/tools.php?page=kt_dashicons_viewer3.4336.75

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Dashicons Viewer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.63 ▼0.931.80 ▲0.0642.30 ▲2.13
Dashboard /wp-admin2,210 ▲225.81 ▲0.9193.94 ▼12.0839.67 ▼3.62
Posts /wp-admin/edit.php2,090 ▲11.99 ▲0.0237.94 ▼1.7833.08 ▼2.83
Add New Post /wp-admin/post-new.php1,545 ▲2518.35 ▼4.68620.83 ▲4.4357.70 ▼3.30
Media Library /wp-admin/upload.php1,392 ▲104.19 ▲0.0394.53 ▼6.0340.93 ▼2.21
Dashicons /wp-admin/tools.php?page=kt_dashicons_viewer2,1802.0223.1562.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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 fix 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/kt-dashicons/kt-dashicons.php:90

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 96% 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
1 plugin tags: dashicons

kt-dashicons/kt-dashicons.php 92% from 13 tests

The primary PHP file in "Dashicons Viewer" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151669

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Constants1
▷ Global constants1100.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
No PNG files were detected