83% gitsta-shortcode

Code Review | Gitsta Shortcodes

WordPress plugin Gitsta Shortcodes scored83%from 54 tests.

About plugin

  • Plugin page: gitsta-shortcode
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 17, 2014
  • Latest release: Oct 22, 2014
  • Number of updates: 4
  • Update frequency: every 8.8 days
  • Top authors: doecode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /626 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Gitsta Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.97 ▼7.81
Dashboard /wp-admin3.34 ▲0.0451.95 ▲0.87
Posts /wp-admin/edit.php3.39 ▲0.0351.92 ▼5.69
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.29 ▼16.89
Media Library /wp-admin/upload.php3.27 ▲0.0335.98 ▼0.96

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Gitsta Shortcodes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.21 ▼0.162.17 ▲0.4044.08 ▼1.70
Dashboard /wp-admin2,195 ▲185.57 ▲0.0285.45 ▼2.4141.14 ▼1.58
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0035.32 ▼4.0834.42 ▼1.87
Add New Post /wp-admin/post-new.php1,528 ▲223.14 ▲0.17684.86 ▼33.2059.78 ▲2.03
Media Library /wp-admin/upload.php1,400 ▼34.12 ▼0.08109.32 ▲4.8546.47 ▲0.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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)
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/gitsta-shortcode/shortcodes.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Contributors: Contributors not specified
  • Plugin Name: Please specify the plugin name on the first line ( === gitsta-shortcode === )
Please take inspiration from this readme.txt

gitsta-shortcode/shortcodes.php 92% from 13 tests

"Gitsta Shortcodes" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("gitsta-shortcode.php" instead of "shortcodes.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
There were no executable files found in this plugin181 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13774116
Markdown119065

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions17
▷ Named functions00.00%
▷ Anonymous functions17100.00%
Constants0
▷ Global constants00.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
No PNG files were detected