84% shortcode-shortcode

Code Review | Shortcode Shortcode

WordPress plugin Shortcode Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: shortcode-shortcode
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2014
  • Latest release: Nov 4, 2022
  • Number of updates: 27
  • Update frequency: every 117.3 days
  • Top authors: numeeja (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,726 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
This plugin's installer ran successfully

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

A check of server-side resources used by Shortcode Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.01 ▼1.34
Dashboard /wp-admin3.31 ▲0.0046.74 ▼4.91
Posts /wp-admin/edit.php3.36 ▲0.0050.65 ▼2.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.36 ▼4.97
Media Library /wp-admin/upload.php3.23 ▲0.0035.85 ▲3.73

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Shortcode Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.17 ▼0.482.08 ▲0.4539.17 ▼5.89
Dashboard /wp-admin2,189 ▲155.64 ▲0.1095.54 ▼10.7543.82 ▲1.38
Posts /wp-admin/edit.php2,103 ▲61.98 ▲0.0241.26 ▲4.7137.90 ▲2.03
Add New Post /wp-admin/post-new.php1,534 ▼118.15 ▼0.03636.78 ▼28.6968.94 ▼3.53
Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.02101.08 ▼4.3843.29 ▼3.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shortcode-shortcode/shortcode-shortcode.php:34

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: shortcode, example, documentation

shortcode-shortcode/shortcode-shortcode.php Passed 13 tests

"Shortcode Shortcode" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
119 characters long description:
Provides a [shortcode] shortcode to allow you to give examples of shortcode usage without the shortcode being processed

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
No dangerous file extensions were detected13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1133113

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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