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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.26ms] Passed 4 tests
Server-side resources used by BW Portfolio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.69 ▲1.61 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.50 ▼4.01 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.05 ▼3.26 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 95.45 ▼11.39 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.82 ▲7.10 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=bw_portfolio | 3.30 | 37.44 |
Portfolio Items /wp-admin/edit.php?post_type=bw_portfolio | 3.35 | 35.17 |
Add New /wp-admin/post-new.php?post_type=bw_portfolio | 6.05 | 82.02 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for BW Portfolio
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲128 | 13.44 ▼0.93 | 7.64 ▲5.39 | 41.12 ▼4.80 |
Dashboard /wp-admin | 2,226 ▲46 | 5.57 ▼0.10 | 91.44 ▼0.27 | 37.92 ▼5.90 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.98 ▲0.01 | 39.61 ▲4.24 | 37.64 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 22.96 ▼0.26 | 659.93 ▲14.66 | 50.89 ▼1.41 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.09 ▼0.09 | 110.08 ▲0.70 | 47.18 ▲7.59 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=bw_portfolio | 1,274 | 2.12 | 27.75 | 31.23 |
Portfolio Items /wp-admin/edit.php?post_type=bw_portfolio | 1,123 | 1.98 | 32.21 | 28.82 |
Add New /wp-admin/post-new.php?post_type=bw_portfolio | 6,227 | 23.35 | 814.19 | 30.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bw-portfolio/bw-portfolio.php:33
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/bw-portfolio/inc/portfolio-loop.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/bw-portfolio/inc/portfolio-query.php:61
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bw-portfolio/inc/portfolio-query.php on line 56
- > PHP Notice
Undefined variable: bw_portfolio_query in wp-content/plugins/bw-portfolio/inc/portfolio-loop.php on line 6
- > PHP Notice
Undefined variable: bw_atts in wp-content/plugins/bw-portfolio/inc/portfolio-query.php on line 56
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: portfolio, modal, grid, shortcode
bw-portfolio/bw-portfolio.php 85% from 13 tests
The main file in "BW Portfolio" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 411 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
There were no executable files found in this plugin718 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 111 | 121 | 348 |
JavaScript | 1 | 64 | 50 | 195 |
CSS | 1 | 27 | 37 | 175 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.54MB with 0.40MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-1.png | 555.41KB | 145.86KB | ▼ 73.74% |