67% iconic-rating

Code Review | Iconic Rating

WordPress plugin Iconic Rating scored67%from 54 tests.

About plugin

  • Plugin page: iconic-rating
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 28, 2016
  • Latest release: Oct 13, 2016
  • Number of updates: 7
  • Update frequency: every 2.3 days
  • Top authors: ernestortiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,013 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.53ms] Passed 4 tests

An overview of server-side resources used by Iconic Rating
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.71 ▲5.83
Dashboard /wp-admin3.41 ▲0.1050.30 ▼4.02
Posts /wp-admin/edit.php3.46 ▲0.1046.57 ▼4.82
Add New Post /wp-admin/post-new.php6.01 ▲0.1288.03 ▼15.23
Media Library /wp-admin/upload.php3.33 ▲0.1037.35 ▼2.06
Iconic Rating /wp-admin/options-general.php?page=iconicr3.2733.38

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Iconic Rating
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.18 ▼0.092.23 ▲0.3243.71 ▲5.31
Dashboard /wp-admin2,206 ▲295.62 ▲0.0294.38 ▲1.8443.91 ▼2.92
Posts /wp-admin/edit.php2,105 ▲52.00 ▲0.0435.14 ▼1.7933.79 ▼3.75
Add New Post /wp-admin/post-new.php1,533 ▲723.43 ▲0.39655.77 ▼80.1655.53 ▼6.50
Media Library /wp-admin/upload.php1,405 ▲54.21 ▲0.0198.14 ▼8.6642.67 ▼4.43
Iconic Rating /wp-admin/options-general.php?page=iconicr1,2361.6624.8930.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/iconic-rating/uninstall.php+7
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=iconicr
    • > Notice in wp-content/plugins/iconic-rating/optionspage.php+180
    Undefined index: on_uninstall

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iconic-rating/optionspage.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iconic-rating/ajaxes.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iconic-rating/iconicr.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 79% 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
These attributes need your attention:
  • Donate link: Invalid url: ""
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
You can take inspiration from this readme.txt

iconic-rating/iconicr.php 69% from 13 tests

The entry point to "Iconic Rating" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("iconic-rating.php" instead of "iconicr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,049 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP43175403
JavaScript21329244
PO File18491234
CSS3215168

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin