83% cssigniter-shortcodes

Code Review | CSSIgniter Shortcodes

WordPress plugin CSSIgniter Shortcodes scored83%from 54 tests.

About plugin

  • Plugin page: cssigniter-shortc...
  • Plugin version: 2.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Feb 6, 2012
  • Latest release: Aug 31, 2023
  • Number of updates: 165
  • Update frequency: every 25.6 days
  • Top authors: anastis (71.52%)silencerius (23.64%)tsiger (4.24%)cssigniterteam (2.42%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /48,491 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.96ms] Passed 4 tests

An overview of server-side resources used by CSSIgniter Shortcodes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.86 ▼12.30
Dashboard /wp-admin3.33 ▲0.0249.75 ▼4.57
Posts /wp-admin/edit.php3.38 ▲0.0248.99 ▲0.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.35 ▼3.73
Media Library /wp-admin/upload.php3.25 ▲0.0238.86 ▲2.15
CSSIgniter Shortcodes /wp-admin/options-general.php?page=cssigniter_shortcodes_plugin3.2335.36

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 8 new options
New WordPress options
cssigniter_shortcodes_plugin_version
db_upgraded
widget_recent-comments
theysaidso_admin_options
cssigniter_shortcodes_plugin
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

CSSIgniter Shortcodes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17313.53 ▼1.2211.19 ▲9.2941.45 ▼1.18
Dashboard /wp-admin2,207 ▲195.83 ▼0.0595.95 ▼19.4239.38 ▼3.39
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0238.16 ▲0.7332.77 ▼1.42
Add New Post /wp-admin/post-new.php1,536 ▲1723.31 ▲0.13658.99 ▲9.1857.69 ▲10.04
Media Library /wp-admin/upload.php1,392 ▲44.12 ▼0.12109.86 ▲5.6746.68 ▲1.63
CSSIgniter Shortcodes /wp-admin/options-general.php?page=cssigniter_shortcodes_plugin3,3642.0227.5266.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cssigniter-shortcodes/ci-shortcodes.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cssigniter-shortcodes/inc/upgrade.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cssigniter-shortcodes/inc/panel.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

cssigniter-shortcodes/ci-shortcodes.php 77% from 13 tests

"CSSIgniter Shortcodes" version 2.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cssigniter-shortcodes.php" instead of "ci-shortcodes.php")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")

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 plugin13,338 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
CSS85631754,496
SVG2002,694
JavaScript55223072,524
PHP162731262,341
Sass19220571,283

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions67
▷ Named functions67100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin