84% icono-pure-css-icons

Code Review | Icono - Pure CSS icons

WordPress plugin Icono - Pure CSS icons scored84%from 54 tests.

About plugin

  • Plugin page: icono-pure-css-icons
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.2
  • WordPress version: 6.3.1
  • First release: Jan 12, 2015
  • Latest release: Jul 3, 2023
  • Number of updates: 35
  • Update frequency: every 88.4 days
  • Top authors: RavanH (71.43%)deployer (31.43%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,550 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by Icono - Pure CSS icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0247.25 ▲6.56
Dashboard /wp-admin3.32 ▲0.0146.64 ▼2.08
Posts /wp-admin/edit.php3.37 ▲0.0149.38 ▼7.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.28 ▼18.22
Media Library /wp-admin/upload.php3.24 ▲0.0136.14 ▲6.16

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Icono - Pure CSS icons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.55 ▼0.662.03 ▲0.2743.95 ▼3.96
Dashboard /wp-admin2,206 ▲214.85 ▼1.05106.11 ▲0.0838.70 ▼4.22
Posts /wp-admin/edit.php2,092 ▲62.05 ▲0.0239.04 ▼0.7736.89 ▼1.64
Add New Post /wp-admin/post-new.php1,537 ▲1323.36 ▲0.02670.90 ▲65.5567.01 ▲18.42
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0699.37 ▼3.2043.63 ▼2.37

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icono-pure-css-icons/icono.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: icons, icon, css icons, icono

icono-pure-css-icons/icono.php 85% from 13 tests

The primary PHP file in "Icono - Pure CSS icons" version 1.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("icono-pure-css-icons.php" instead of "icono.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 184 characters long)

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
Success! There were no dangerous files found in this plugin50 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1235746
CSS4004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.75
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected