Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼8.54ms] Passed 4 tests
An overview of server-side resources used by BestWebSoft’s Pinterest
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.87 | 48.57 ▲2.42 |
Dashboard /wp-admin | 4.24 ▲0.90 | 57.59 ▼6.98 |
Posts /wp-admin/edit.php | 4.29 ▲0.93 | 60.00 ▲8.90 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.43 | 55.01 ▼38.48 |
Media Library /wp-admin/upload.php | 4.10 ▲0.87 | 50.82 ▲13.08 |
Server storage [IO: ▲7.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 128 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
pntrst_options |
bstwbsftwppdtplgns_options |
theysaidso_admin_options |
widget_pntrst-widget |
Browser metrics Passed 4 tests
A check of browser resources used by BestWebSoft’s Pinterest
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,055 ▲298 | 14.40 ▲0.03 | 11.38 ▲9.34 | 37.95 ▼11.75 |
Dashboard /wp-admin | 2,452 ▲264 | 4.93 ▼0.01 | 115.14 ▲2.49 | 43.82 ▲4.09 |
Posts /wp-admin/edit.php | 2,345 ▲253 | 2.23 ▲0.18 | 39.15 ▼1.68 | 34.47 ▼2.42 |
Add New Post /wp-admin/post-new.php | 1,761 ▲242 | 23.16 ▲0.05 | 657.49 ▲37.80 | 61.84 ▲2.20 |
Media Library /wp-admin/upload.php | 1,634 ▲246 | 4.33 ▲0.18 | 115.04 ▲14.37 | 47.94 ▲3.53 |
BWS Panel /wp-admin/pinterest.php?page=pntrst-bws-panel | 26 | 0.44 | 0.09 | 14.48 |
Settings /wp-admin/pinterest.php | 26 | 0.44 | 0.10 | 7.43 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/bws-pinterest/includes/class-pntrst-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bws-pinterest/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bws-pinterest/bws_menu/class-bws-settings.php:1452
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bws-pinterest/bws-pinterest.php:431
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/pinterest.php?page=pntrst-bws-panel
- > Network (severe)
wp-admin/pinterest.php?page=pntrst-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/pinterest.php
- > Network (severe)
wp-admin/pinterest.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Pinterest Save and Follow buttons before the post.), #2 (Pinterest Pin widget displaying.), #3 (Pinterest Board widget displaying.), #4 (Pinterest Profile widget displaying.), #5 (Pinterest Settings page.), #6 (Adding Pinterest widgets to the sidebar.), #7 (Adding Pinterest shortcode to your post or page.)
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
bws-pinterest/bws-pinterest.php Passed 13 tests
The main file in "BestWebSoft’s Pinterest" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
Add Pinterest Follow, Save buttons and profile widgets (Pin, Board, Profile) to WordPress posts, pages and widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected19,824 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 3,655 | 5,288 | 8,184 |
CSS | 10 | 189 | 280 | 5,558 |
PHP | 9 | 501 | 700 | 5,291 |
JavaScript | 9 | 38 | 131 | 641 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 80.25 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 11.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 80.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 19.35% |
Functions | 72 | |
▷ Named functions | 72 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
68 PNG files occupy 5.49MB with 2.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
bws_menu/icons/plugins/bike-rental.png | 6.86KB | 2.68KB | ▼ 60.89% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
bws_menu/icons/themes/unity.png | 412.66KB | 167.67KB | ▼ 59.37% |
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.18KB | ▼ 44.00% |