Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▲1.52ms] Passed 4 tests
A check of server-side resources used by Campaign URL Builder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 41.14 ▲0.85 |
Dashboard /wp-admin | 3.66 ▲0.36 | 58.09 ▲9.04 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 51.23 ▲8.37 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 90.55 ▼3.30 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 38.38 ▲0.17 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 135 new files
Database: 3 new tables, 15 new options
New tables |
---|
wp_reatlat_cub_links |
wp_reatlat_cub_mediums |
wp_reatlat_cub_sources |
New WordPress options |
---|
reatlat_cub_keep_settings |
reatlat_cub_version |
reatlat_cub_show_creator |
widget_recent-comments |
reatlat_cub_metaboxes |
reatlat_cub_google_api_key |
reatlat_cub_admin_only |
reatlat_cub_advanced_api |
widget_theysaidso_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Campaign URL Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.48 ▼1.16 | 1.65 ▲0.07 | 42.96 ▼1.88 |
Dashboard /wp-admin | 2,245 ▲57 | 5.12 ▼0.73 | 117.85 ▲5.27 | 42.90 ▲1.30 |
Posts /wp-admin/edit.php | 2,130 ▲44 | 2.41 ▲0.40 | 41.41 ▲4.95 | 31.63 ▲0.16 |
Add New Post /wp-admin/post-new.php | 6,404 ▲4,871 | 26.26 ▲3.00 | 876.12 ▲210.22 | 40.04 ▼16.64 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.54 ▲0.30 | 102.46 ▼0.52 | 42.13 ▼0.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_reatlat_cub_links
- wp_reatlat_cub_mediums
- wp_reatlat_cub_sources
- The uninstall procedure has failed, leaving 15 options in the database
- reatlat_cub_version
- reatlat_cub_google_api_key
- can_compress_scripts
- widget_recent-comments
- reatlat_cub_metaboxes
- reatlat_cub_bitly_api_key
- reatlat_cub_show_useronly
- reatlat_cub_admin_only
- widget_theysaidso_widget
- reatlat_cub_keep_settings
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/campaign-url-builder/admin/views/partial/reatlat_cub-admin-notice-clipboard.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/campaign-url-builder/admin/views/partial/reatlat_cub-admin-links-list.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/campaign-url-builder/admin/views/partial/reatlat_cub-admin-manage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/campaign-url-builder/admin/views/partial/reatlat_cub-admin-kb.php:2
- > PHP Fatal error
Uncaught Error: Class 'reatlat_cub' not found in wp-content/plugins/campaign-url-builder/includes/class-reatlat_cub-activator.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/campaign-url-builder/admin/views/partial/reatlat_cub-admin-shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/campaign-url-builder/admin/views/partial/reatlat_cub-admin-about.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/campaign-url-builder/admin/views/partial/reatlat_cub-admin-sidebar.php:2
- > PHP Fatal error
Uncaught Error: Class 'reatlat_cub' not found in wp-content/plugins/campaign-url-builder/includes/class-reatlat_cub-reset.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/campaign-url-builder/admin/views/partial/reatlat_cub-admin-advanced.php:5
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #3, #4, #5, #6 in campaign-url-builder/assets to your readme.txt
- Requires php: Invalid version format
campaign-url-builder/reatlat_cub.php 85% from 13 tests
"Campaign URL Builder" version 1.8.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("campaign-url-builder.php" instead of "reatlat_cub.php")
- Description: Keep the plugin description shorter than 140 characters (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,419 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 87 | 203 | 183 | 2,315 |
PHP | 25 | 416 | 221 | 2,170 |
PO File | 1 | 221 | 276 | 563 |
JavaScript | 4 | 80 | 95 | 369 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 29.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 84.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 15.49% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
6 PNG files occupy 0.28MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/views/images/gplv3.png | 12.30KB | 8.37KB | ▼ 31.95% |
admin/views/images/github-octcat.png | 13.36KB | 6.02KB | ▼ 54.98% |
admin/views/images/opensource.png | 6.59KB | 3.80KB | ▼ 42.40% |
admin/views/images/rateus.png | 181.44KB | 61.45KB | ▼ 66.13% |
admin/views/images/help-sign.png | 48.70KB | 20.26KB | ▼ 58.39% |