90% recursive-shortcode

Code Review | Recursive Shortcode

WordPress plugin Recursive Shortcode scored90%from 54 tests.

About plugin

  • Plugin page: recursive-shortcode
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Aug 13, 2020
  • Latest release: Aug 14, 2020
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: kgitthoene (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /319 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▲1.39ms] Passed 4 tests

This is a short check of server-side resources used by Recursive Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1744.42 ▲4.72
Dashboard /wp-admin3.48 ▲0.1751.11 ▼5.10
Posts /wp-admin/edit.php3.59 ▲0.2357.05 ▲7.17
Add New Post /wp-admin/post-new.php6.08 ▲0.1994.31 ▼0.83
Media Library /wp-admin/upload.php3.40 ▲0.1741.75 ▲6.78

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Recursive Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.42 ▼1.149.44 ▲7.6644.19 ▲2.61
Dashboard /wp-admin2,199 ▲225.70 ▲0.0788.27 ▼3.5037.67 ▼7.34
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0139.12 ▼0.4835.75 ▼3.97
Add New Post /wp-admin/post-new.php1,539 ▲1118.20 ▼4.79618.13 ▼68.9975.99 ▲16.85
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.0198.71 ▼4.8141.69 ▼5.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • recursive_shortcode_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: plugin, wordpress, recursive, shortcode

recursive-shortcode/recursive-shortcode.php 92% from 13 tests

"Recursive Shortcode" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.9" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,235 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP92538371,112
JavaScript5192180
YAML13025
JSON10018
CSS1010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity25.71
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods48
▷ Static methods918.75%
▷ Public methods4083.33%
▷ Protected methods00.00%
▷ Private methods816.67%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected