Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.58MB] [CPU: ▼1.78ms] Passed 4 tests
An overview of server-side resources used by RubSum
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 38.79 ▼0.41 |
Dashboard /wp-admin | 3.96 ▲0.66 | 48.85 ▼2.90 |
Posts /wp-admin/edit.php | 3.98 ▲0.63 | 52.56 ▲1.28 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 86.71 ▼5.10 |
Media Library /wp-admin/upload.php | 3.88 ▲0.66 | 40.18 ▲5.62 |
Add New Employee /wp-admin/post-new.php?post_type=rs_employees_info | 4.33 | 55.40 |
All Employees /wp-admin/edit.php?post_type=rs_employees_info | 3.93 | 39.13 |
speciality /wp-admin/edit-tags.php?taxonomy=employee-speciality&post_type=rs_employees_info | 3.88 | 36.22 |
Server storage [IO: ▲6.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 383 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by RubSum
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲224 | 15.79 ▲1.42 | 16.06 ▲14.27 | 38.43 ▼9.17 |
Dashboard /wp-admin | 2,248 ▲66 | 5.90 ▲1.01 | 110.79 ▲4.27 | 38.32 ▼4.37 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.08 ▲0.02 | 41.46 ▼1.37 | 38.81 ▲0.67 |
Add New Post /wp-admin/post-new.php | 1,547 ▲5 | 23.33 ▲5.07 | 668.20 ▲35.01 | 52.29 ▼6.89 |
Media Library /wp-admin/upload.php | 1,433 ▲48 | 4.24 ▲0.00 | 94.31 ▼14.95 | 42.69 ▼2.17 |
Add New Employee /wp-admin/post-new.php?post_type=rs_employees_info | 2,333 | 7.24 | 165.53 | 72.11 |
All Employees /wp-admin/edit.php?post_type=rs_employees_info | 1,112 | 1.99 | 32.23 | 30.77 |
speciality /wp-admin/edit-tags.php?taxonomy=employee-speciality&post_type=rs_employees_info | 1,302 | 2.22 | 27.75 | 27.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rubsum/metabox/metabox-config.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/rubsum/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/rubsum/metabox/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/rubsum/metabox/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/rubsum/metabox/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/rubsum/metabox/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/rubsum/metabox/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/rubsum/metabox/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/rubsum/metabox/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/rubsum/metabox/includes/types/CMB2_Type_Select_Timezone.php:13
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== rubsum ===
)
rubsum/rubsum.php 85% from 13 tests
The main PHP file in "RubSum" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: Please keep the plugin description shorter than 140 characters (currently 179 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected57,410 lines of code in 224 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 56 | 2,111 | 6,088 | 7,076 |
CSS | 15 | 1,170 | 1,157 | 4,672 |
SVG | 3 | 0 | 12 | 3,927 |
JavaScript | 10 | 343 | 508 | 3,871 |
JSON | 2 | 0 | 0 | 3,529 |
Sass | 16 | 300 | 25 | 1,379 |
Markdown | 2 | 215 | 0 | 633 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 18.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 8 | 11.94% |
▷ Concrete classes | 59 | 88.06% |
▷ Final classes | 0 | 0.00% |
Methods | 524 | |
▷ Static methods | 86 | 16.41% |
▷ Public methods | 433 | 82.63% |
▷ Protected methods | 88 | 16.79% |
▷ Private methods | 3 | 0.57% |
Functions | 35 | |
▷ Named functions | 35 | 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
PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
metabox/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
metabox/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
metabox/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
metabox/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
metabox/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |