Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.51MB] [CPU: ▼288.19ms] Passed 4 tests
An overview of server-side resources used by WP Custom Tags
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.35 | 58.19 ▲1.13 |
Dashboard /wp-admin | 4.03 ▲0.62 | 41.29 ▲6.41 |
Posts /wp-admin/edit.php | 4.22 ▲0.58 | 46.08 ▲3.02 |
Add New Post /wp-admin/post-new.php | 7.48 ▲0.51 | 102.81 ▼1,159.96 |
Media Library /wp-admin/upload.php | 3.91 ▲0.62 | 30.93 ▲3.07 |
WPCTags /wp-admin/edit.php?post_type=wpctag | 3.95 | 31.85 |
Add New /wp-admin/post-new.php?post_type=wpctag | 4.42 | 44.51 |
Server storage [IO: ▲3.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 367 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Custom Tags
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,845 ▲91 | 16.45 ▲0.49 | 10.51 ▲4.37 | 2.55 ▲0.08 |
Dashboard /wp-admin | 2,926 ▲68 | 6.22 ▲0.03 | 128.60 ▼9.44 | 162.46 ▼5.62 |
Posts /wp-admin/edit.php | 2,736 ▲45 | 3.26 ▲0.02 | 64.90 ▼0.14 | 145.30 ▼5.24 |
Add New Post /wp-admin/post-new.php | 1,704 ▲43 | 19.81 ▲4.01 | 385.53 ▼4.48 | 161.29 ▲3.01 |
Media Library /wp-admin/upload.php | 1,746 ▲51 | 5.59 ▲0.07 | 142.01 ▲5.42 | 190.62 ▲0.18 |
WPCTags /wp-admin/edit.php?post_type=wpctag | 1,422 | 3.19 | 60.85 | 114.74 |
Add New /wp-admin/post-new.php?post_type=wpctag | 2,414 | 6.70 | 127.82 | 162.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-custom-tags/wpcustomtags.php
- 38× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/wp-custom-tags/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/wp-custom-tags/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/wp-custom-tags/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/wp-custom-tags/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-custom-tags/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-custom-tags/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-custom-tags/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-custom-tags/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/wp-custom-tags/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/wp-custom-tags/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: web components, riotjs, tags, custom tags, components
wp-custom-tags/wpcustomtags.php 85% from 13 tests
Analyzing the main PHP file in "WP Custom Tags" version 0.1
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-custom-tags.php" instead of "wpcustomtags.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected48,739 lines of code in 222 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 55 | 2,063 | 5,932 | 7,037 |
CSS | 12 | 1,164 | 1,148 | 4,644 |
JavaScript | 15 | 449 | 633 | 2,733 |
Sass | 16 | 300 | 25 | 1,378 |
Markdown | 4 | 220 | 0 | 624 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 8 | 12.12% |
▷ Concrete classes | 58 | 87.88% |
▷ Final classes | 0 | 0.00% |
Methods | 518 | |
▷ Static methods | 86 | 16.60% |
▷ Public methods | 426 | 82.24% |
▷ Protected methods | 89 | 17.18% |
▷ Private methods | 3 | 0.58% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |