Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.85ms] Passed 4 tests
Server-side resources used by Wbcom Designs - BuddyPress Ads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.24 ▼5.46 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.75 ▼13.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.70 ▼6.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.65 ▼17.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 41.33 ▲1.74 |
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page | 3.00 | 23.42 |
Support /wp-admin/admin.php?page=wbcom-support-page | 3.00 | 22.69 |
Our Themes /wp-admin/admin.php?page=wbcom-themes-page | 3.00 | 25.97 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Wbcom Designs - BuddyPress Ads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.75 ▲0.40 | 1.59 ▼0.37 | 40.65 ▲1.88 |
Dashboard /wp-admin | 2,192 ▲12 | 5.54 ▼0.10 | 81.24 ▼5.40 | 37.30 ▼9.84 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.04 | 33.05 ▼1.98 | 33.49 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.14 ▼5.62 | 644.70 ▼94.43 | 51.25 ▼15.48 |
Media Library /wp-admin/upload.php | 1,391 ▼12 | 4.21 ▼0.04 | 97.91 ▼3.41 | 41.71 ▼3.43 |
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page | 28 | 0.42 | 0.09 | 3.55 |
Support /wp-admin/admin.php?page=wbcom-support-page | 28 | 0.42 | 0.08 | 3.72 |
Our Themes /wp-admin/admin.php?page=wbcom-themes-page | 28 | 0.42 | 0.10 | 3.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wbcom-designs-buddypress-ads/public/partials/buddypress-ads-rotator-public-display.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wbcom-designs-buddypress-ads/admin/wbcom/templates/wbcom-license-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wbcom-designs-buddypress-ads/admin/wbcom/templates/wbcom-plugins-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wbcom-designs-buddypress-ads/admin/wbcom/templates/wbcom-support-page.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wbcom-plugins-page
- > Network (severe)
wp-admin/admin.php?page=wbcom-plugins-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wbcom-support-page
- > Network (severe)
wp-admin/admin.php?page=wbcom-support-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wbcom-themes-page
- > Network (severe)
wp-admin/admin.php?page=wbcom-themes-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in wbcom-designs-buddypress-ads/assets to your readme.txt
wbcom-designs-buddypress-ads/buddypress-ads-rotator.php 85% from 13 tests
Analyzing the main PHP file in "Wbcom Designs - BuddyPress Ads" version 1.5.3
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wbcom-designs-buddypress-ads.php" instead of "buddypress-ads-rotator.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin7,761 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 2,792 |
PHP | 17 | 234 | 905 | 2,596 |
CSS | 4 | 310 | 69 | 1,960 |
JavaScript | 5 | 25 | 74 | 413 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 38.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 4.93 |
▷ 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 | 76 | |
▷ Static methods | 2 | 2.63% |
▷ Public methods | 69 | 90.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.21% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/wbcom/assets/imgs/logowbcom.png | 10.12KB | 3.87KB | ▼ 61.72% |
admin/wbcom/assets/imgs/wbcom-offer-notice.png | 67.64KB | 32.40KB | ▼ 52.11% |
admin/images/output-left.png | 6.95KB | 2.75KB | ▼ 60.48% |
admin/images/output-center.png | 5.96KB | 2.29KB | ▼ 61.56% |
admin/images/output-right.png | 7.15KB | 2.75KB | ▼ 61.59% |