90% ics

Code Review | INLINE CATEGORY SEARCH

WordPress plugin INLINE CATEGORY SEARCH scored90%from 54 tests.

About plugin

  • Plugin page: ics
  • Plugin version: 1.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Oct 29, 2018
  • Latest release: Aug 16, 2020
  • Number of updates: 25
  • Update frequency: every 26.3 days
  • Top authors: nipoto (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,339 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by INLINE CATEGORY SEARCH
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.04 ▼0.28
Dashboard /wp-admin3.31 ▲0.0146.18 ▼1.21
Posts /wp-admin/edit.php3.37 ▲0.0146.82 ▼15.54
Add New Post /wp-admin/post-new.php5.92 ▲0.0286.04 ▼18.41
Media Library /wp-admin/upload.php3.24 ▲0.0038.03 ▲1.88

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

INLINE CATEGORY SEARCH: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.58 ▼0.801.79 ▲0.0844.01 ▲4.41
Dashboard /wp-admin2,210 ▲255.88 ▼0.00100.27 ▼0.0541.88 ▼1.53
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0636.44 ▼5.6534.79 ▼7.00
Add New Post /wp-admin/post-new.php1,521 ▲723.24 ▲5.65659.61 ▼29.3553.11 ▲2.42
Media Library /wp-admin/upload.php1,398 ▲164.17 ▼0.0598.37 ▼8.0841.05 ▼5.20

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

Smoke tests Passed 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 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: category, new post, search, gutenberg, coocommerce...

ics/index.php 92% from 13 tests

Analyzing the main PHP file in "INLINE CATEGORY SEARCH" version 1.6.5
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ics.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15186
CSS12736
PHP184515

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
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 functions150.00%
▷ Anonymous functions150.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 images were found in this plugin