83% theidealweb-amelia-shortcode-extended

Code Review | Amelia Shortcode Extended

WordPress plugin Amelia Shortcode Extended scored83%from 54 tests.

About plugin

  • Plugin page: theidealweb-ameli...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.6
  • WordPress version: 6.3.1
  • First release: Mar 22, 2019
  • Latest release: Dec 11, 2020
  • Number of updates: 37
  • Update frequency: every 17.0 days
  • Top authors: rincelau02 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,591 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Amelia Shortcode Extended
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.09 ▼1.44
Dashboard /wp-admin3.31 ▲0.0049.50 ▲1.17
Posts /wp-admin/edit.php3.36 ▲0.0043.44 ▼5.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.08 ▼15.97
Media Library /wp-admin/upload.php3.23 ▲0.0036.10 ▲1.98

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

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

Browser metrics Passed 4 tests

Amelia Shortcode Extended: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.19 ▼0.431.76 ▲0.1838.28 ▼1.59
Dashboard /wp-admin2,198 ▲185.62 ▼0.0384.11 ▼4.9039.27 ▼4.48
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0235.66 ▲0.0531.86 ▼3.54
Add New Post /wp-admin/post-new.php1,540 ▲1418.22 ▼5.07623.75 ▼27.7264.14 ▲5.82
Media Library /wp-admin/upload.php1,400 ▲64.24 ▲0.0295.32 ▼4.8940.02 ▼2.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/theidealweb-amelia-shortcode-extended/ameliabooking.php:106

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Requires php: Version format is invalid
The official readme.txt might help

theidealweb-amelia-shortcode-extended/ameliabooking.php 77% from 13 tests

"Amelia Shortcode Extended" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("theidealweb-amelia-shortcode-extended.php" instead of "ameliabooking.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin77 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151477

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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

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