Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼142.92ms] Passed 4 tests
This is a short check of server-side resources used by Rescue Shortcodes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.11 | 36.43 ▲1.43 |
Dashboard /wp-admin | 3.16 ▲0.10 | 48.94 ▲4.59 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 47.72 ▲1.54 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 92.31 ▼571.17 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 35.23 ▼3.47 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Rescue Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,172 ▲576 | 16.25 ▲0.64 | 11.88 ▲1.33 | 48.95 ▲0.93 |
Dashboard /wp-admin | 3,331 ▲397 | 6.23 ▲0.21 | 143.62 ▼15.24 | 100.59 ▲1.07 |
Posts /wp-admin/edit.php | 3,100 ▲361 | 2.76 ▲0.04 | 65.37 ▼2.57 | 92.30 ▲6.41 |
Add New Post /wp-admin/post-new.php | 2,301 ▲803 | 15.87 ▼2.93 | 400.45 ▼16.13 | 99.75 ▼8.29 |
Media Library /wp-admin/upload.php | 2,168 ▲361 | 5.10 ▲0.08 | 159.82 ▲0.00 | 112.60 ▼4.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rescue-shortcodes/includes/shortcode-functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rescue-shortcodes/includes/shortcodes-button.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rescue-shortcodes/includes/scripts.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: buttons, spacing, highlight, columns, animations...
rescue-shortcodes/rescue-shortcodes.php Passed 13 tests
The primary PHP file in "Rescue Shortcodes" version 2.5 is used by WordPress to initiate all plugin functionality
32 characters long description:
A lightweight shortcodes plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,764 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 4 | 111 | 118 | 512 |
CSS | 3 | 27 | 50 | 337 |
JavaScript | 10 | 77 | 30 | 244 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected