83% ionicons-official

Code Review | Ionicons Official

WordPress plugin Ionicons Official scored83%from 54 tests.

About plugin

  • Plugin page: ionicons-official
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Nov 11, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: maxlynch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /4,517 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.01MB] [CPU: ▼4.43ms] Passed 4 tests

An overview of server-side resources used by Ionicons Official
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.18 ▲3.43
Dashboard /wp-admin3.31 ▼0.0449.53 ▼11.14
Posts /wp-admin/edit.php3.36 ▲0.0049.13 ▼3.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.80 ▼0.67
Media Library /wp-admin/upload.php3.23 ▲0.0034.86 ▼2.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ionicons Official
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.42 ▼0.252.07 ▲0.5436.41 ▼3.55
Dashboard /wp-admin2,198 ▲285.59 ▼0.0695.83 ▼5.1543.29 ▼1.24
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0839.77 ▼1.5239.95 ▲3.34
Add New Post /wp-admin/post-new.php1,526 ▼023.26 ▲0.23591.59 ▲3.3951.30 ▼1.67
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0399.11 ▼3.0844.20 ▼1.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/ionicons-official/ionicons.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === ionicons-official === )
The official readme.txt is a good inspiration

ionicons-official/ionicons.php 92% from 13 tests

This is the main PHP file of "Ionicons Official" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ionicons-official.php" instead of "ionicons.php")

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
Good job! No executable or dangerous file extensions detected17 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP151715
Markdown1002

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.00
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
PNG images were not found in this plugin