Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▼0.15ms] Passed 4 tests
This is a short check of server-side resources used by CampaignDot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 38.04 ▼1.73 |
Dashboard /wp-admin | 3.72 ▲0.42 | 51.38 ▲3.89 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 54.75 ▲10.34 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 84.77 ▼5.88 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 38.48 ▲3.12 |
Help /wp-admin/admin.php?page=corporate-info-page | 3.56 | 38.04 |
Corporate infos /wp-admin/admin.php?page=corporate-main-page | 3.56 | 42.77 |
Banner /wp-admin/admin.php?page=corporate_banner_page | 3.56 | 40.32 |
Server storage [IO: ▲2.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 600 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wes_banner_stats |
wp_wes_months |
New WordPress options |
---|
wes_banner_mode |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
CampaignDot: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,125 ▲363 | 15.48 ▲1.13 | 5.89 ▲4.34 | 41.46 ▼4.81 |
Dashboard /wp-admin | 2,411 ▲234 | 6.53 ▲0.89 | 130.35 ▲29.88 | 38.29 ▼6.69 |
Posts /wp-admin/edit.php | 2,342 ▲242 | 3.30 ▲1.34 | 50.90 ▲4.06 | 26.63 ▼11.99 |
Add New Post /wp-admin/post-new.php | 1,609 ▲80 | 23.56 ▲0.43 | 663.99 ▼46.09 | 38.75 ▼9.01 |
Media Library /wp-admin/upload.php | 1,479 ▲82 | 4.53 ▲0.24 | 87.22 ▼14.59 | 38.49 ▼5.85 |
Help /wp-admin/admin.php?page=corporate-info-page | 1,175 | 3.36 | 46.96 | 94.59 |
Corporate infos /wp-admin/admin.php?page=corporate-main-page | 1,713 | 3.75 | 69.39 | 72.49 |
Banner /wp-admin/admin.php?page=corporate_banner_page | 1,206 | 3.45 | 45.49 | 74.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'wes_cleanTransient' not found or invalid function name
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_wes_months
- wp_wes_banner_stats
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- wes_banner_mode
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/campaigndot/admin/template/CampaignDot-help.php
- > /wp-content/plugins/campaigndot/include/phpqrcode/index.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/campaigndot/template/wes_banner.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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 your attention:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
campaigndot/campaigndot.php 92% from 13 tests
"CampaignDot" version 2.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 278 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/campaigndot/include/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,148 | 676 | 10,076 |
PHP | 50 | 2,470 | 2,596 | 9,756 |
PO File | 6 | 792 | 949 | 2,524 |
CSS | 5 | 198 | 53 | 1,050 |
SVG | 13 | 0 | 13 | 652 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 32.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 371 | |
▷ Static methods | 122 | 32.88% |
▷ Public methods | 271 | 73.05% |
▷ Protected methods | 96 | 25.88% |
▷ Private methods | 4 | 1.08% |
Functions | 73 | |
▷ Named functions | 69 | 94.52% |
▷ Anonymous functions | 4 | 5.48% |
Constants | 102 | |
▷ Global constants | 102 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
104 PNG files occupy 0.54MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/phpqrcode/cache/frame_29.png | 0.23KB | 0.21KB | ▼ 7.76% |
img/social-icons/round-color/linkedin.png | 0.91KB | 0.47KB | ▼ 47.85% |
img/generic-signature.png | 42.49KB | 45.13KB | 0.00% |
img/icon-style/minimal.png | 2.94KB | 1.33KB | ▼ 54.87% |
include/phpqrcode/cache/frame_27.png | 0.23KB | 0.22KB | ▼ 6.33% |