90% i-toolbar

Code Review | <i> Toolbar

WordPress plugin <i> Toolbar scored90%from 54 tests.

About plugin

  • Plugin page: i-toolbar
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Aug 31, 2021
  • Latest release: Nov 14, 2023
  • Number of updates: 23
  • Update frequency: every 35.1 days
  • Top authors: them.es (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,421 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.01MB] [CPU: ▼3.39ms] Passed 4 tests

A check of server-side resources used by <i> Toolbar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.83 ▼7.23
Dashboard /wp-admin3.32 ▲0.0146.69 ▼5.01
Posts /wp-admin/edit.php3.37 ▲0.0145.59 ▼0.67
Add New Post /wp-admin/post-new.php5.96 ▲0.0696.22 ▲7.33
Media Library /wp-admin/upload.php3.24 ▲0.0133.93 ▼0.63

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2,076 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for <i> Toolbar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲514.28 ▼0.121.62 ▼0.4940.67 ▼4.42
Dashboard /wp-admin2,195 ▲185.60 ▼0.0092.97 ▼7.0243.79 ▼3.71
Posts /wp-admin/edit.php2,100 ▼31.96 ▲0.0141.35 ▲0.2037.96 ▲0.84
Add New Post /wp-admin/post-new.php1,693 ▲15722.38 ▼0.82620.32 ▲7.8434.71 ▼15.06
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0496.17 ▼7.4544.78 ▲0.50

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: editor, icon, gutenberg, icons, bootstrap

i-toolbar/i-toolbar.php Passed 13 tests

The main file in "<i> Toolbar" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
84 characters long description:
A simple &lt;i&gt;con picker for rich-text blocks. Powered by Bootstrap Icons (MIT).

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
There were no executable files found in this plugin20,945 lines of code in 2,069 files:
LanguageFilesBlank linesComment linesLines of code
HTML1507,286
SVG2,054007,137
CSS37102,127
JSON2002,122
Sass1502,085
Markdown4540136
PHP383251
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin