Benchmarks
Plugin footprint 82% 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: ▼139.73ms] 75% from 4 tests
Analyzing server-side resources used by Portfolio - Filterable Masonry Portfolio Gallery for Professionals
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 10,614.37ms on /wp-admin/edit.php?post_type=portfoliopro&page=portfolioprosettings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 34.86 ▲10.68 |
Dashboard /wp-admin | 3.23 ▲0.17 | 43.12 ▼4.05 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 52.43 ▲6.88 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 93.48 ▼560.91 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 33.31 ▼0.83 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolioprotag&post_type=portfoliopro | 3.11 | 35.69 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolioprocat&post_type=portfoliopro | 3.11 | 37.69 |
Add Item /wp-admin/post-new.php?post_type=portfoliopro | 3.20 | 52.50 |
All Item /wp-admin/edit.php?post_type=portfoliopro | 3.16 | 38.97 |
Portfolio Settings /wp-admin/edit.php?post_type=portfoliopro&page=portfolioprosettings | 3.93 | 10,614.37 |
Server storage [IO: ▲0.34MB] [DB: ▲0.09MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 1 new option
New WordPress options |
---|
portfoliopro_basic |
Browser metrics Passed 4 tests
Portfolio - Filterable Masonry Portfolio Gallery for Professionals: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,064 ▲482 | 18.14 ▲2.19 | 15.41 ▲7.28 | 46.56 ▼2.55 |
Dashboard /wp-admin | 3,235 ▲301 | 8.24 ▲2.27 | 175.25 ▲24.12 | 115.31 ▲8.73 |
Posts /wp-admin/edit.php | 3,036 ▲297 | 4.37 ▲1.67 | 100.27 ▲29.37 | 94.60 ▲3.42 |
Add New Post /wp-admin/post-new.php | 1,666 ▼17 | 21.20 ▲2.50 | 280.07 ▼116.53 | 103.55 ▼11.19 |
Media Library /wp-admin/upload.php | 1,882 ▲134 | 4.94 ▼0.06 | 124.96 ▼30.39 | 128.80 ▲13.59 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolioprotag&post_type=portfoliopro | 2,012 | 4.25 | 82.26 | 75.65 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolioprocat&post_type=portfoliopro | 2,058 | 4.32 | 86.15 | 80.11 |
Add Item /wp-admin/post-new.php?post_type=portfoliopro | 3,375 | 9.42 | 251.00 | 135.56 |
All Item /wp-admin/edit.php?post_type=portfoliopro | 1,709 | 4.29 | 93.29 | 75.88 |
Portfolio Settings /wp-admin/edit.php?post_type=portfoliopro&page=portfolioprosettings | 1,942 | 4.16 | 86.57 | 94.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- portfoliopro_basic
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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/portfolio-pro/public/partials/portfolio-pro-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
portfolio-pro/portfolio-pro.php Passed 13 tests
The primary PHP file in "Portfolio - Filterable Masonry Portfolio Gallery for Professionals" version 1.2.2 is used by WordPress to initiate all plugin functionality
107 characters long description:
Smart Portfolio Gallery for Professionals. Responsive Grid system with Filter and Masonry Based on Isotope.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin5,405 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 1,046 | 1,281 | 3,666 |
PHP | 14 | 502 | 890 | 1,096 |
LESS | 1 | 32 | 5 | 335 |
CSS | 3 | 0 | 10 | 308 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 14.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 2 | 2.86% |
▷ Public methods | 65 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.14% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/website.png | 2.26KB | 2.18KB | ▼ 3.75% |