78% shortcodes-for-keyforge

Code Review | Shortcodes For KeyForge

WordPress plugin Shortcodes For KeyForge scored78%from 54 tests.

About plugin

  • Plugin page: shortcodes-for-ke...
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 17, 2019
  • Latest release: Jan 17, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: jsmackin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /444 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.32ms] Passed 4 tests

An overview of server-side resources used by Shortcodes For KeyForge
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.87 ▼6.14
Dashboard /wp-admin3.31 ▲0.0152.27 ▲3.28
Posts /wp-admin/edit.php3.36 ▲0.0154.08 ▲1.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.94 ▼19.03
Media Library /wp-admin/upload.php3.23 ▲0.0039.71 ▲2.85

Server storage [IO: ▲0.06MB] [DB: ▲0.04MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables
wp_jsm_keyforge_cards
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Shortcodes For KeyForge
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.071.89 ▲0.3537.89 ▼6.89
Dashboard /wp-admin2,195 ▲185.62 ▼0.0694.04 ▲6.7941.21 ▼0.74
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0138.66 ▼1.3035.87 ▼2.26
Add New Post /wp-admin/post-new.php1,537 ▲918.42 ▼4.55608.51 ▼56.3067.18 ▲0.49
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.11108.47 ▼0.5544.71 ▼2.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shortcodes-for-keyforge/keyforge-cards.php
  • 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/shortcodes-for-keyforge/tpls/deck.php on line 50
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/shortcodes-for-keyforge/tpls/deck.php on line 50
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/shortcodes-for-keyforge/tpls/deck.php on line 50
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/shortcodes-for-keyforge/tpls/deck.php on line 50
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/shortcodes-for-keyforge/tpls/deck.php on line 50
    • > PHP Notice
      Undefined variable: deck in wp-content/plugins/shortcodes-for-keyforge/tpls/deck.php on line 50
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/shortcodes-for-keyforge/tpls/deck.php on line 50
    • > PHP Notice
      Undefined variable: deck in wp-content/plugins/shortcodes-for-keyforge/tpls/deck.php on line 50
    • > PHP Notice
      Undefined variable: deck in wp-content/plugins/shortcodes-for-keyforge/tpls/deck.php on line 50
    • > PHP Notice
      Undefined variable: deck in wp-content/plugins/shortcodes-for-keyforge/tpls/deck.php on line 50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 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
2 plugin tags: keyforge, shortcodes

shortcodes-for-keyforge/keyforge-cards.php 92% from 13 tests

"Shortcodes For KeyForge" version 0.0.1'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: Please rename the main PHP file in this plugin to the plugin slug ("shortcodes-for-keyforge.php" instead of "keyforge-cards.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin594 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Julia100370
PHP31119224

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 images were found in this plugin