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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 34.37 ▲13.66 |
Dashboard /wp-admin | 3.08 ▲0.02 | 43.93 ▼3.30 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 44.32 ▼2.49 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 89.58 ▼564.54 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,079 ▲483 | 16.43 ▲0.86 | 12.04 ▲2.81 | 46.90 ▼1.02 |
Dashboard /wp-admin | 3,346 ▲417 | 6.09 ▲0.09 | 146.53 ▼6.88 | 103.64 ▼0.13 |
Posts /wp-admin/edit.php | 3,404 ▲665 | 3.35 ▲0.52 | 105.56 ▲31.80 | 99.94 ▲9.47 |
Add New Post /wp-admin/post-new.php | 2,163 ▲480 | 16.46 ▼2.33 | 443.17 ▲66.57 | 130.58 ▲23.11 |
Media Library /wp-admin/upload.php | 2,109 ▲302 | 5.05 ▲0.03 | 178.02 ▲15.32 | 120.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 1,534 | 93 | 6,306 |
PHP | 25 | 321 | 387 | 1,548 |
SVG | 1 | 0 | 3 | 967 |
JavaScript | 5 | 11 | 2 | 64 |
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 code | 0.19 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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