Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.88ms] Passed 4 tests
This is a short check of server-side resources used by ND Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 45.12 ▲4.06 |
Dashboard /wp-admin | 3.37 ▲0.02 | 50.48 ▼8.72 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 55.84 ▲6.07 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.87 ▼6.05 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.05 ▲3.21 |
Server storage [IO: ▲9.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 618 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ND Shortcodes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲127 | 13.72 ▼0.63 | 8.01 ▲6.50 | 43.30 ▼0.42 |
Dashboard /wp-admin | 2,210 ▲33 | 5.64 ▲0.00 | 95.38 ▼1.60 | 41.71 ▼0.35 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.02 ▼0.00 | 35.08 ▼4.81 | 33.20 ▼3.10 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.50 ▲0.07 | 692.99 ▼3.20 | 58.86 ▲6.19 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.22 ▲0.06 | 98.15 ▲4.26 | 41.46 ▼0.33 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/nd-shortcodes/addons/eventscalendar/customizer/styles/default-style.php
- > /wp-content/plugins/nd-shortcodes/addons/customizer/header/header-5/style.php
- > /wp-content/plugins/nd-shortcodes/addons/customizer/header/header-6/style.php
- > /wp-content/plugins/nd-shortcodes/addons/woocommerce/customizer/styles/default-style.php
- 803× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: nd_options_minutes_color in wp-content/plugins/nd-shortcodes/shortcodes/custom/countdown/layout/layout-3.php on line 26
- > PHP Notice
Undefined variable: nd_options_seconds_bg_color in wp-content/plugins/nd-shortcodes/shortcodes/custom/countdown/layout/layout-2.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nd-shortcodes/addons/eventscalendar/customizer/styles/custom-style-1.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nd-shortcodes/addons/woocommerce/template/single/layout/layout-4.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/nd-shortcodes/shortcodes/focus/layout/layout-5.php on line 11
- > PHP Notice
Undefined variable: str in wp-content/plugins/nd-shortcodes/shortcodes/testimonial/layout/layout-1.php on line 23
- > PHP Notice
Undefined variable: nd_options_link_url in wp-content/plugins/nd-shortcodes/shortcodes/custom/service/layout/layout-1.php on line 10
- > PHP Notice
Undefined variable: nd_options_link_target_output in wp-content/plugins/nd-shortcodes/shortcodes/custom/service/layout/layout-3.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nd-shortcodes/shortcodes/custom/price/index.php:4
- > PHP Notice
Undefined variable: str in wp-content/plugins/nd-shortcodes/shortcodes/custom/service/layout/layout-7.php on line 14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: elementor, elementor sections, wp bakery page builder, elementor templates, elementor pages...
nd-shortcodes/nd-shortcodes.php 92% from 13 tests
The entry point to "ND Shortcodes" version 7.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected43,668 lines of code in 377 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 287 | 10,991 | 2,473 | 27,726 |
PO File | 13 | 5,018 | 6,231 | 10,276 |
SVG | 58 | 17 | 50 | 3,157 |
CSS | 9 | 304 | 194 | 1,587 |
JavaScript | 10 | 345 | 759 | 922 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 217 | |
▷ Named functions | 217 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
41 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
addons/customizer/footer/footer-2/logo.png | 2.99KB | 1.45KB | ▼ 51.42% |
addons/locations/img/gmaps/layout-1/m5.png | 1.88KB | 0.74KB | ▼ 60.77% |
addons/locations/img/icons/icon-add-white.png | 0.61KB | 0.16KB | ▼ 74.28% |
addons/customizer/header/header-4/img/logo.png | 3.10KB | 1.45KB | ▼ 53.18% |
shortcodes/custom/toogle/icon-less-white.png | 0.38KB | 0.13KB | ▼ 66.15% |