84% ig-shortcodes

Code Review | IG Shortcodes

WordPress plugin IG Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: ig-shortcodes
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 6.3.1
  • First release: May 20, 2014
  • Latest release: Dec 30, 2016
  • Number of updates: 157
  • Update frequency: every 6.1 days
  • Top authors: iografica (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /9,022 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.83ms] Passed 4 tests

Analyzing server-side resources used by IG Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.19 ▼5.08
Dashboard /wp-admin3.36 ▲0.0646.08 ▲1.55
Posts /wp-admin/edit.php3.47 ▲0.1249.83 ▲4.02
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.62 ▼9.88
Media Library /wp-admin/upload.php3.28 ▲0.0534.75 ▼1.89

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for IG Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲16613.64 ▼0.745.96 ▲3.9443.16 ▼5.50
Dashboard /wp-admin2,216 ▲315.80 ▼0.0898.68 ▼1.8636.48 ▼6.55
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0240.29 ▲4.9735.02 ▲0.61
Add New Post /wp-admin/post-new.php1,546 ▲1323.13 ▼0.12638.82 ▼11.4150.90 ▼5.66
Media Library /wp-admin/upload.php1,404 ▲164.30 ▲0.1094.38 ▼5.8842.42 ▲0.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× 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/ig-shortcodes/inc/admin/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ig-shortcodes/inc/shortcodes/free-shortcodes.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1) image required
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

ig-shortcodes/ig-shortcodes.php Passed 13 tests

"IG Shortcodes" version 3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
A complete set of WordPress shortcodes to add beautiful and useful elements to your theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,371 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
CSS3190261,214
Sass165115747
SVG103534
JavaScript2425387
PHP34992261
PO File385141228

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.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
1 PNG file occupies 0.47MB with 0.32MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png481.53KB156.21KB▼ 67.56%