84% ragic-shortcode

Code Review | Ragic Shortcode

WordPress plugin Ragic Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: ragic-shortcode
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.2
  • WordPress version: 6.3.1
  • First release: Apr 7, 2014
  • Latest release: Jun 21, 2023
  • Number of updates: 12
  • Update frequency: every 281.8 days
  • Top authors: berrinsun (75%)ragicsupport (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.87ms] Passed 4 tests

An overview of server-side resources used by Ragic Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.40 ▼10.29
Dashboard /wp-admin3.31 ▲0.0145.31 ▼6.17
Posts /wp-admin/edit.php3.36 ▲0.0144.70 ▼0.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.00 ▼2.10
Media Library /wp-admin/upload.php3.23 ▲0.0134.52 ▼0.93

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

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

Browser metrics Passed 4 tests

Ragic Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.361.63 ▼0.1343.33 ▼0.37
Dashboard /wp-admin2,195 ▲155.57 ▼0.0889.35 ▲2.0237.59 ▼0.73
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0936.69 ▼2.1333.46 ▲1.63
Add New Post /wp-admin/post-new.php1,526 ▼223.18 ▲0.28603.05 ▼2.8364.94 ▲14.65
Media Library /wp-admin/upload.php1,403 ▲94.23 ▲0.0599.28 ▼12.4543.91 ▼1.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ragic-shortcode/ragic.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: ragic, embed form, shortcode

ragic-shortcode/ragic.php 92% from 13 tests

Analyzing the main PHP file in "Ragic Shortcode" version 1.2
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ragic-shortcode.php" instead of "ragic.php")

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 plugin38 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17838

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected