10% shortcurl

Code Review | EZ SHORTCURL Shortcodes to Fetch and Parse External Content

WordPress plugin EZ SHORTCURL Shortcodes to Fetch and Parse External Content scored10%from 54 tests.

About plugin

  • Plugin page: shortcurl
  • Plugin version: 3.17.49
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2012
  • Latest release: Dec 16, 2017
  • Number of updates: 16
  • Update frequency: every 115.0 days
  • Top authors: scheeeli (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /9,674 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/shortcurl/index.php+237
    Function create_function() is deprecated

Server metrics [RAM: ▼1.77MB] [CPU: ▼54.32ms] Passed 4 tests

Server-side resources used by EZ SHORTCURL Shortcodes to Fetch and Parse External Content
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.255.35 ▼35.50
Dashboard /wp-admin2.24 ▼1.077.02 ▼41.46
Posts /wp-admin/edit.php2.24 ▼1.127.00 ▼42.47
Add New Post /wp-admin/post-new.php2.24 ▼3.658.92 ▼97.84
Media Library /wp-admin/upload.php2.24 ▼0.996.41 ▼34.75

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_shortcurl-widget
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for EZ SHORTCURL Shortcodes to Fetch and Parse External Content
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.16 ▼0.191.70 ▼0.5143.52 ▲2.59
Dashboard /wp-admin2,195 ▲155.62 ▼0.0587.19 ▼7.3441.69 ▼3.34
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0140.00 ▲3.4938.94 ▼0.80
Add New Post /wp-admin/post-new.php1,528 ▲223.24 ▼0.36628.42 ▼82.8949.83 ▼4.63
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.0699.13 ▼11.8548.14 ▼2.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/shortcurl/index.php+237
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_shortcurl-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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/shortcurl/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: str_replace, post, page, html, curl...

shortcurl/index.php 92% from 13 tests

The principal PHP file in "EZ SHORTCURL Shortcodes to Fetch and Parse External Content" v. 3.17.49 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shortcurl.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin199 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1929199

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.84
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity8.40
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected