83% inqwise-shortcode

Code Review | Inqwise Shortcode

WordPress plugin Inqwise Shortcode scored 83% from 54 tests.

About plugin

  • Plugin page: inqwise-shortcode
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.3.1
  • WordPress version: 6.3.1
  • First release: May 2, 2014
  • Latest release: Jun 24, 2014
  • Number of updates: 5
  • Update frequency: every 10.6 days
  • Top authors: basilg (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 903 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.01MB] [CPU: ▼6.03ms] Passed 4 tests

Server-side resources used by Inqwise Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.16 ▼5.18
Dashboard /wp-admin3.31 ▲0.0145.57 ▼1.55
Posts /wp-admin/edit.php3.36 ▲0.0153.21 ▲4.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.57 ▼15.99
Media Library /wp-admin/upload.php3.23 ▲0.0032.82 ▼1.39

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Inqwise Shortcode: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.67 ▼0.621.56 ▼0.2139.18 ▼0.42
Dashboard /wp-admin2,206 ▲215.86 ▲0.79107.45 ▼4.0641.37 ▼6.26
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.1040.52 ▲0.6735.37 ▼8.20
Add New Post /wp-admin/post-new.php1,542 ▲918.77 ▼4.62650.15 ▼16.1153.38 ▼2.62
Media Library /wp-admin/upload.php1,385 ▼64.20 ▲0.01100.05 ▼6.9945.05 ▲2.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 no errors were found, this is by no means an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/inqwise-shortcode/inqwise.php:50

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === inqwise-shortcode === )
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add images for these screenshots: #1 (Usage of shortcode example), #2 (Where to get shortcode), #3 (Copy and Use)
Please take inspiration from this readme.txt

inqwise-shortcode/inqwise.php 85% from 13 tests

The entry point to "Inqwise Shortcode" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 203 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("inqwise-shortcode.php" instead of "inqwise.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101131

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin