84% shortcodely

Code Review | Shortcodely

WordPress plugin Shortcodely scored84%from 54 tests.

About plugin

  • Plugin page: shortcodely
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.8
  • WordPress version: 6.3.1
  • First release: Dec 9, 2016
  • Latest release: Jul 14, 2021
  • Number of updates: 7
  • Update frequency: every 239.0 days
  • Top authors: patilswapnilv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,233 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.67ms] Passed 4 tests

An overview of server-side resources used by Shortcodely
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.18 ▼9.94
Dashboard /wp-admin3.32 ▼0.0342.49 ▼14.84
Posts /wp-admin/edit.php3.37 ▲0.0146.78 ▼1.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.59 ▼8.89
Media Library /wp-admin/upload.php3.24 ▲0.0134.36 ▲1.04
Shortcode any widget /wp-admin/options-general.php?page=shortcodely_saw3.2136.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shortcodely
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▼0.192.11 ▲0.1943.88 ▼1.50
Dashboard /wp-admin2,213 ▲256.06 ▲0.1397.32 ▼11.8339.11 ▼4.97
Posts /wp-admin/edit.php2,093 ▲12.04 ▼0.0140.51 ▼0.7135.53 ▼0.19
Add New Post /wp-admin/post-new.php1,531 ▲1723.23 ▲5.78676.24 ▲47.2253.41 ▲3.73
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.01105.99 ▲12.4148.98 ▲8.17
Shortcode any widget /wp-admin/options-general.php?page=shortcodely_saw9072.1427.5131.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcodely/shortcodely.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
7 plugin tags: page, page template, widget_area, sidebar, templates...

shortcodely/shortcodely.php 92% from 13 tests

"Shortcodely" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin689 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4116150597
Markdown141092

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin