10% shortcodify

Code Review | Shortcodify

WordPress plugin Shortcodify scored 10% from 54 tests.

About plugin

  • Plugin page: shortcodify
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Dec 3, 2012
  • Latest release: Feb 23, 2016
  • Number of updates: 36
  • Update frequency: every 32.7 days
  • Top authors: lrnz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,340 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/shortcodify/shortcodify.php+625
    Methods with the same name as their class will not be constructors in a future version of PHP; ShortcodifyWidget has a deprecated constructor

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

Analyzing server-side resources used by Shortcodify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.54 ▼2.47
Dashboard /wp-admin3.33 ▲0.0345.66 ▼1.15
Posts /wp-admin/edit.php3.45 ▲0.0949.55 ▲5.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.66 ▼4.14
Media Library /wp-admin/upload.php3.26 ▲0.0336.25 ▼1.50

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
wp_shortcodify_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Shortcodify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲12813.65 ▲0.418.96 ▲7.4139.11 ▲3.03
Dashboard /wp-admin2,207 ▲45.86 ▼0.0199.25 ▲2.8537.27 ▼1.06
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0338.57 ▲5.2934.83 ▲1.19
Add New Post /wp-admin/post-new.php1,517 ▼1717.57 ▼5.57631.48 ▼80.4251.62 ▼12.39
Media Library /wp-admin/upload.php1,392 ▲14.21 ▼0.04101.69 ▼3.2845.23 ▲0.34
Shortcodify /wp-admin/shortcodify.php260.440.1012.71

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • wp_shortcodify_options
    • widget_theysaidso_widget
    • can_compress_scripts

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 50% 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shortcodify/shortcodify.php:625

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/shortcodify.php
    • > Network (severe)
    wp-admin/shortcodify.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Shortcodify widget area.), #2 (Shortcodes in the tiny.), #3 (The output of the shortcodes)
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

shortcodify/shortcodify.php Passed 13 tests

This is the main PHP file of "Shortcodify" version 1.4.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
24 characters long description:
Plugin to add shortcodes

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 plugin1,557 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS135501,088
PHP181201381
PO File2204074
JavaScript11014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity23.50
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods13.33%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions0
▷ Named functions00.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
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png14.76KB3.52KB▼ 76.18%
screenshot-1.png15.90KB4.15KB▼ 73.92%
screenshot-2.png36.89KB12.12KB▼ 67.14%