68% simple-code-insert-shortcode

Code Review | Simple Code Insert Shortcode

WordPress plugin Simple Code Insert Shortcode scored68%from 54 tests.

About plugin

  • Plugin page: simple-code-inser...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2015
  • Latest release: Jul 13, 2015
  • Number of updates: 22
  • Update frequency: every 0.2 days
  • Top authors: developersnote (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,241 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.17ms] Passed 4 tests

This is a short check of server-side resources used by Simple Code Insert Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.90 ▼3.20
Dashboard /wp-admin3.36 ▲0.0146.06 ▼13.89
Posts /wp-admin/edit.php3.47 ▲0.1148.78 ▲2.40
Add New Post /wp-admin/post-new.php5.96 ▲0.0794.35 ▼8.58
Media Library /wp-admin/upload.php3.28 ▲0.0536.91 ▲1.00
SCI Shortcode /wp-admin/options-general.php?page=simple-code-insert-shortcode3.2537.86

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wp_scistbl
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Code Insert Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.56 ▼0.811.89 ▲0.2343.31 ▲0.96
Dashboard /wp-admin2,217 ▲325.97 ▲0.0898.41 ▼3.1239.19 ▼4.24
Posts /wp-admin/edit.php2,103 ▲112.04 ▲0.0540.79 ▼0.2035.92 ▼1.27
Add New Post /wp-admin/post-new.php1,521 ▼2123.15 ▲5.10639.24 ▼5.0555.08 ▼0.10
Media Library /wp-admin/upload.php1,396 ▲114.18 ▼0.02100.97 ▼2.1043.37 ▲0.81
SCI Shortcode /wp-admin/options-general.php?page=simple-code-insert-shortcode8892.0725.1630.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_scistbl
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-code-insert-shortcode/simplecodeinsertshortcode.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-code-insert-shortcode/class.scis-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Scis_Admin' not found in wp-content/plugins/simple-code-insert-shortcode/views/dashboard.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: simple code insert, simple code embed, simple code insert shortcode

simple-code-insert-shortcode/simplecodeinsertshortcode.php 85% from 13 tests

The entry point to "Simple Code Insert Shortcode" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 264 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-code-insert-shortcode.php" instead of "simplecodeinsertshortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin694 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS1230329
PHP69825302
JavaScript124063

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.20
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods18100.00%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_inc/images/scis-logo.png5.16KB2.13KB▼ 58.65%
_inc/images/simple-code-insert-plugin-screenshot.png56.14KB24.92KB▼ 55.61%