Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▲5.26ms] Passed 4 tests
Server-side resources used by Advance Portfolio Grid, Slider and Gallery - Showcase Projects, Images and Videos
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.75 ▼1.61 |
Dashboard /wp-admin | 3.53 ▲0.23 | 60.78 ▲8.02 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 55.57 ▲9.41 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 105.31 ▲14.42 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 42.68 ▲5.22 |
Add New /wp-admin/post-new.php?post_type=wpb_fp_portfolio | 6.12 | 82.55 |
Portfolio Settings /wp-admin/edit.php?post_type=wpb_fp_portfolio&page=portfolio-settings | 3.37 | 33.34 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=wpb_fp_portfolio_cat&post_type=wpb_fp_portfolio | 3.52 | 37.19 |
All Portfolios /wp-admin/edit.php?post_type=wpb_fp_portfolio | 3.44 | 36.01 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 10 new options
New WordPress options |
---|
wpb_fp_style |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
wpb_fp_advanced |
widget_theysaidso_widget |
wpb_fp_slider |
wpb_fp_general |
widget_recent-posts |
Browser metrics Passed 4 tests
Advance Portfolio Grid, Slider and Gallery - Showcase Projects, Images and Videos: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,126 ▲391 | 15.62 ▲1.33 | 8.60 ▲6.59 | 37.86 ▼10.86 |
Dashboard /wp-admin | 2,403 ▲218 | 6.63 ▲0.76 | 136.20 ▲10.90 | 45.67 ▲0.38 |
Posts /wp-admin/edit.php | 2,311 ▲225 | 3.67 ▲1.65 | 57.69 ▲22.02 | 39.96 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,724 ▲210 | 22.85 ▲5.41 | 572.53 ▼86.88 | 30.74 ▼24.00 |
Media Library /wp-admin/upload.php | 1,445 ▲54 | 4.36 ▲0.12 | 85.63 ▼17.54 | 43.78 ▼3.89 |
Add New /wp-admin/post-new.php?post_type=wpb_fp_portfolio | 6,548 | 20.65 | 840.06 | 41.53 |
Portfolio Settings /wp-admin/edit.php?post_type=wpb_fp_portfolio&page=portfolio-settings | 1,865 | 3.48 | 77.00 | 39.53 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=wpb_fp_portfolio_cat&post_type=wpb_fp_portfolio | 1,488 | 3.46 | 50.94 | 35.04 |
All Portfolios /wp-admin/edit.php?post_type=wpb_fp_portfolio | 1,323 | 3.47 | 54.65 | 35.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 10 options
- widget_recent-comments
- db_upgraded
- wpb_fp_advanced
- wpb_fp_slider
- theysaidso_admin_options
- can_compress_scripts
- wpb_fp_style
- wpb_fp_general
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× 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/advance-portfolio-grid/inc/wpb_fp_elementor.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-portfolio-grid/inc/wpb_fp_metabox.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: gallery, filterable portfolio, portfolio gallery, portfolio grid, wordpress portfolio plugin...
advance-portfolio-grid/main.php 85% from 13 tests
The primary PHP file in "Advance Portfolio Grid, Slider and Gallery - Showcase Projects, Images and Videos" version 1.07.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advance-portfolio-grid.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,564 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 250 | 112 | 2,441 |
PHP | 12 | 464 | 390 | 1,803 |
PO File | 1 | 55 | 55 | 132 |
JavaScript | 4 | 22 | 17 | 125 |
SVG | 1 | 1 | 3 | 63 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 24.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 51 | 92.73% |
▷ Protected methods | 2 | 3.64% |
▷ Private methods | 2 | 3.64% |
Functions | 33 | |
▷ Named functions | 32 | 96.97% |
▷ Anonymous functions | 1 | 3.03% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/check-icon.png | 2.13KB | 2.13KB | 0.00% |