Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼290.25ms] Passed 4 tests
This is a short check of server-side resources used by Advance Portfolio Grid and Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.37 | 58.59 ▲5.83 |
Dashboard /wp-admin | 3.83 ▲0.42 | 41.66 ▲7.11 |
Posts /wp-admin/edit.php | 4.05 ▲0.41 | 44.82 ▲6.83 |
Add New Post /wp-admin/post-new.php | 7.43 ▲0.46 | 95.53 ▼1,174.77 |
Media Library /wp-admin/upload.php | 3.75 ▲0.46 | 25.46 ▲1.13 |
All Portfolios /wp-admin/edit.php?post_type=wpb_fp_portfolio | 3.83 | 32.44 |
Portfolio Settings /wp-admin/edit.php?post_type=wpb_fp_portfolio&page=portfolio-settings | 3.76 | 28.08 |
Add New /wp-admin/post-new.php?post_type=wpb_fp_portfolio | 7.43 | 95.42 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=wpb_fp_portfolio_cat&post_type=wpb_fp_portfolio | 3.78 | 31.20 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 4 new options
New WordPress options |
---|
wpb_fp_general |
wpb_fp_slider |
wpb_fp_advanced |
wpb_fp_style |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advance Portfolio Grid and Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,193 ▲471 | 18.03 ▲2.07 | 11.08 ▲5.55 | 2.10 ▼0.17 |
Dashboard /wp-admin | 3,172 ▲311 | 8.38 ▲2.22 | 140.33 ▲2.58 | 179.50 ▲18.98 |
Posts /wp-admin/edit.php | 2,999 ▲305 | 5.55 ▲2.30 | 84.31 ▲20.09 | 186.72 ▲39.98 |
Add New Post /wp-admin/post-new.php | 1,720 ▲59 | 15.88 ▲0.13 | 395.81 ▼34.20 | 167.72 ▲12.58 |
Media Library /wp-admin/upload.php | 1,787 ▲86 | 5.68 ▲0.18 | 111.67 ▼20.13 | 200.07 ▲18.89 |
All Portfolios /wp-admin/edit.php?post_type=wpb_fp_portfolio | 1,727 | 5.45 | 74.40 | 150.28 |
Portfolio Settings /wp-admin/edit.php?post_type=wpb_fp_portfolio&page=portfolio-settings | 2,478 | 5.15 | 105.62 | 190.48 |
Add New /wp-admin/post-new.php?post_type=wpb_fp_portfolio | 9,799 | 20.22 | 597.41 | 173.47 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=wpb_fp_portfolio_cat&post_type=wpb_fp_portfolio | 1,938 | 5.22 | 75.50 | 137.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 4 options in the database
- wpb_fp_style
- wpb_fp_general
- wpb_fp_slider
- wpb_fp_advanced
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > 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 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
advance-portfolio-grid/main.php 77% from 13 tests
"Advance Portfolio Grid and Slider" version 1.06.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "4.0")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: The principal 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,579 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 252 | 112 | 2,456 |
PHP | 12 | 464 | 393 | 1,803 |
PO File | 1 | 55 | 55 | 132 |
JavaScript | 4 | 22 | 17 | 125 |
SVG | 1 | 1 | 3 | 63 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
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
PNG files should be compressed to save space and minimize bandwidth usage
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% |