Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼314.11ms] Passed 4 tests
A check of server-side resources used by Custom Content Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.17 | 62.15 ▲7.06 |
Dashboard /wp-admin | 3.53 ▲0.13 | 36.89 ▲0.12 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 43.72 ▼0.90 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.03 | 114.02 ▼1,256.91 |
Media Library /wp-admin/upload.php | 3.42 ▲0.12 | 29.68 ▲1.26 |
Content /wp-admin/index.php?page=content_overview | 3.49 | 58.50 |
Gallery Fields /wp-admin/options-general.php?page=ccs_gallery_field_settings | 3.39 | 24.34 |
Custom Content /wp-admin/options-general.php?page=ccs_reference | 3.90 | 33.07 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 2 new options
New WordPress options |
---|
ccs_content_settings |
ccs_admin_notice_20220123_dismissed |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Content Shortcode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲62 | 15.98 ▲0.23 | 7.02 ▲1.33 | 2.31 ▼0.10 |
Dashboard /wp-admin | 2,922 ▲61 | 6.15 ▼0.07 | 115.13 ▼15.49 | 232.07 ▲73.17 |
Posts /wp-admin/edit.php | 2,719 ▲47 | 3.24 ▲0.00 | 64.62 ▲0.45 | 144.95 ▲4.26 |
Add New Post /wp-admin/post-new.php | 1,732 ▲70 | 20.80 ▲2.66 | 539.63 ▲66.26 | 261.48 ▲45.17 |
Media Library /wp-admin/upload.php | 1,725 ▲30 | 5.49 ▼0.02 | 145.93 ▲6.57 | 204.76 ▼42.75 |
Content /wp-admin/index.php?page=content_overview | 3,040 | 2.66 | 57.65 | 216.92 |
Gallery Fields /wp-admin/options-general.php?page=ccs_gallery_field_settings | 1,052 | 2.43 | 53.45 | 113.62 |
Custom Content /wp-admin/options-general.php?page=ccs_reference | 1,380 | 2.83 | 105.67 | 170.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- ccs_admin_notice_20220123_dismissed
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ccs_shortcode() in wp-content/plugins/custom-content-shortcode/includes/optional/load.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ccs_shortcode() in wp-content/plugins/custom-content-shortcode/includes/modules/url.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/custom-content-shortcode/custom-content-shortcode.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ccs_shortcode() in wp-content/plugins/custom-content-shortcode/includes/modules/foreach.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ccs_shortcode() in wp-content/plugins/custom-content-shortcode/includes/modules/format.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ccs_shortcode() in wp-content/plugins/custom-content-shortcode/includes/modules/pass.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-shortcode/includes/docs/docs.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ccs_shortcode() in wp-content/plugins/custom-content-shortcode/includes/modules/attached.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_ccs_shortcode() in wp-content/plugins/custom-content-shortcode/includes/modules/if.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/custom-content-shortcode/includes/optional/mobile.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: sidebar, query, loop, taxonomy, post type...
custom-content-shortcode/custom-content-shortcode.php Passed 13 tests
The main PHP file in "Custom Content Shortcode" ver. 4.0.2 adds more information about the plugin and also serves as the entry point for this plugin
116 characters long description:
Display posts, pages, custom post types, custom fields, files, images, comments, attachments, menus, or widget areas
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,280 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 5,312 | 3,617 | 13,082 |
Markdown | 30 | 1,777 | 0 | 2,728 |
JavaScript | 3 | 190 | 111 | 798 |
CSS | 6 | 125 | 94 | 672 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 291)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 86.51 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 521.00 |
Average method complexity | 7.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 291.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 426 | |
▷ Static methods | 189 | 44.37% |
▷ Public methods | 380 | 89.20% |
▷ Protected methods | 46 | 10.80% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 31 | 88.57% |
▷ Anonymous functions | 4 | 11.43% |
Constants | 13 | |
▷ Global constants | 3 | 23.08% |
▷ Class constants | 10 | 76.92% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/docs/logo.png | 4.28KB | 0.89KB | ▼ 79.24% |