Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.82ms] Passed 4 tests
This is a short check of server-side resources used by BT Multi-image Portfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 43.78 ▼2.71 |
Dashboard /wp-admin | 3.42 ▲0.11 | 45.19 ▼3.62 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.23 ▲0.40 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 89.99 ▼1.36 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.05 ▲4.94 |
Add Portfolio item /wp-admin/post-new.php?post_type=bayatree-portfolio | 3.45 | 57.09 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=bayatree-portfolio | 3.33 | 36.05 |
Settings /wp-admin/edit.php?post_type=bayatree-portfolio&page=portfolio_settings | 3.31 | 33.03 |
All Portfolio /wp-admin/edit.php?post_type=bayatree-portfolio | 3.38 | 35.92 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for BT Multi-image Portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲246 | 14.23 ▼0.46 | 10.47 ▲8.59 | 36.56 ▼7.38 |
Dashboard /wp-admin | 2,262 ▲71 | 5.10 ▲0.20 | 109.88 ▲5.90 | 40.26 ▲3.37 |
Posts /wp-admin/edit.php | 2,150 ▲61 | 2.32 ▲0.26 | 42.05 ▲7.43 | 35.07 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,559 ▲17 | 17.94 ▼0.30 | 593.56 ▼31.80 | 33.49 ▼18.88 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.42 ▲0.06 | 97.35 ▲4.05 | 44.51 ▲3.63 |
Add Portfolio item /wp-admin/post-new.php?post_type=bayatree-portfolio | 2,467 | 8.05 | 177.84 | 65.35 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=bayatree-portfolio | 1,323 | 2.06 | 30.46 | 27.78 |
Settings /wp-admin/edit.php?post_type=bayatree-portfolio&page=portfolio_settings | 1,360 | 2.61 | 56.05 | 22.44 |
All Portfolio /wp-admin/edit.php?post_type=bayatree-portfolio | 1,119 | 2.24 | 32.05 | 28.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bt-multi-image-portfolio/tpl/update_custom_option.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: multi-image portfolio, multiple categories portfolio, free portfolio, portfolio plugin, image gallery...
bt-multi-image-portfolio/index.php 92% from 13 tests
The main PHP file in "BT Multi-image Portfolio" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("bt-multi-image-portfolio.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,333 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 60 | 81 | 1,359 |
CSS | 4 | 84 | 22 | 736 |
SVG | 1 | 0 | 0 | 685 |
PHP | 6 | 55 | 153 | 553 |
PHP code Passed 2 tests
Analyzing 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.27 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/next.png | 1.32KB | 1.58KB | 0.00% |
img/close_icon.png | 29.06KB | 13.09KB | ▼ 54.95% |
img/controls.png | 2.19KB | 0.95KB | ▼ 56.49% |
(invalid) img/close-lightbox1.png | 4.68KB | 0.00KB | ▼ 100.00% |
img/link.png | 1.34KB | 1.29KB | ▼ 3.80% |