88% foundation-live-shortcodes

Code Review | FOUNDATION LIVE SHORTCODES

WordPress plugin FOUNDATION LIVE SHORTCODES scored 88% from 54 tests.

About plugin

  • Plugin page: foundation-live-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 5.8.1
  • First release: Jan 19, 2015
  • Latest release: Jan 21, 2015
  • Number of updates: 10
  • Update frequency: every 4.8 days
  • Top authors: epicadesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 983 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼140.84ms] Passed 4 tests

An overview of server-side resources used by FOUNDATION LIVE SHORTCODES
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.37 ▲13.66
Dashboard /wp-admin3.08 ▲0.0243.93 ▼3.30
Posts /wp-admin/edit.php3.14 ▲0.0344.32 ▼2.49
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.58 ▼564.54
Media Library /wp-admin/upload.php3.02 ▲0.0235.92 ▲6.98

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for FOUNDATION LIVE SHORTCODES
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,079 ▲48316.43 ▲0.8612.04 ▲2.8146.90 ▼1.02
Dashboard /wp-admin3,346 ▲4176.09 ▲0.09146.53 ▼6.88103.64 ▼0.13
Posts /wp-admin/edit.php3,404 ▲6653.35 ▲0.52105.56 ▲31.8099.94 ▲9.47
Add New Post /wp-admin/post-new.php2,163 ▲48016.46 ▼2.33443.17 ▲66.57130.58 ▲23.11
Media Library /wp-admin/upload.php2,109 ▲3025.05 ▲0.03178.02 ▲15.32120.07 ▲3.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 20× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/foundation-live-shortcodes/partials/definition.php
    • > /wp-content/plugins/foundation-live-shortcodes/partials/pricing.php
    • > /wp-content/plugins/foundation-live-shortcodes/partials/lightbox.php
    • > /wp-content/plugins/foundation-live-shortcodes/partials/columns.php
    • > /wp-content/plugins/foundation-live-shortcodes/partials/accordion.php
    • > /wp-content/plugins/foundation-live-shortcodes/partials/heading.php
    • > /wp-content/plugins/foundation-live-shortcodes/partials/label.php
    • > /wp-content/plugins/foundation-live-shortcodes/partials/blockquote.php
    • > /wp-content/plugins/foundation-live-shortcodes/partials/progress.php
    • > /wp-content/plugins/foundation-live-shortcodes/partials/panel.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/foundation-live-shortcodes/engine.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/foundation-live-shortcodes/partials/start.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/foundation-live-shortcodes/engine.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foundation-live-shortcodes/frontend.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === foundation-live-shortcodes === )
You can look at the official readme.txt

foundation-live-shortcodes/foundation-live-shortcodes.php Passed 13 tests

The main file in "FOUNDATION LIVE SHORTCODES" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
107 characters long description:
Create live and use shortcodes for add a ZURB Foundation Framework elements to your website - Free Version

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin8,885 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS61,534936,306
PHP253213871,548
SVG103967
JavaScript511264

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin