83% amelia-calendar-essential-shortcodes

Code Review | Amelia Calendar Essential Shortcodes

WordPress plugin Amelia Calendar Essential Shortcodes scored83%from 54 tests.

About plugin

  • Plugin page: amelia-calendar-e...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.2
  • WordPress version: 6.3.1
  • First release: Aug 14, 2019
  • Latest release: Aug 18, 2019
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: husinsajjadi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /7,761 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Amelia Calendar Essential Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.10 ▼3.68
Dashboard /wp-admin3.34 ▼0.0050.55 ▼14.08
Posts /wp-admin/edit.php3.39 ▲0.0450.04 ▼6.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.41 ▼12.66
Media Library /wp-admin/upload.php3.27 ▲0.0434.12 ▲0.48

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Amelia Calendar Essential Shortcodes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.10 ▼0.582.09 ▲0.0744.95 ▲1.96
Dashboard /wp-admin2,195 ▲185.54 ▼0.1585.41 ▼3.7539.80 ▼7.09
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0036.28 ▼1.9130.95 ▼4.47
Add New Post /wp-admin/post-new.php1,533 ▼1223.05 ▼0.17650.84 ▼46.6449.51 ▼5.84
Media Library /wp-admin/upload.php1,397 ▼04.25 ▲0.03102.37 ▼1.7745.76 ▲3.21

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amelia-calendar-essential-shortcodes/index.php:259

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Requires php: Version format is invalid
You can take inspiration from this readme.txt

amelia-calendar-essential-shortcodes/index.php 77% from 13 tests

"Amelia Calendar Essential Shortcodes" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("amelia-calendar-essential-shortcodes.php" instead of "index.php")
  • Domain Path: The domain path should use only dashes and lowercase characters ("https://github.com/husin-sajjadi")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected210 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13514210

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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

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