Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▲6.87ms] Passed 4 tests
Server-side resources used by Portfolio Gallery Master
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 50.09 ▲13.87 |
Dashboard /wp-admin | 3.42 ▲0.12 | 60.61 ▲8.87 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 54.08 ▲11.16 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 85.55 ▲0.11 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.70 ▲7.32 |
Styles /wp-admin/admin.php?page=pgm_styles_menu | 3.34 | 37.63 |
Settings /wp-admin/admin.php?page=pgm_settings_menu | 3.34 | 37.48 |
All Portfolios /wp-admin/edit.php?post_type=pgm-portfolio | 3.37 | 35.14 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 14 new options
New WordPress options |
---|
pgm_portfolio_initial_height |
pgm_portfolio_initial_width |
widget_theysaidso_widget |
widget_recent-comments |
pgm_portfolio_padding |
pgm_portfolio_margin |
pgm_display_max_width |
widget_recent-posts |
pgm_display_min_width |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Portfolio Gallery Master
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲212 | 13.71 ▼0.64 | 7.80 ▲5.93 | 42.81 ▼0.40 |
Dashboard /wp-admin | 2,254 ▲69 | 5.88 ▲0.03 | 105.06 ▲4.77 | 82.97 ▲38.51 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.08 ▲0.07 | 38.83 ▲2.45 | 33.38 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,722 ▲189 | 22.43 ▼0.85 | 737.14 ▲51.49 | 35.80 ▼22.95 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 4.31 ▲0.07 | 96.03 ▼1.96 | 71.91 ▲26.32 |
Styles /wp-admin/admin.php?page=pgm_styles_menu | 1,083 | 2.38 | 35.15 | 30.10 |
Settings /wp-admin/admin.php?page=pgm_settings_menu | 1,026 | 2.12 | 28.51 | 38.65 |
All Portfolios /wp-admin/edit.php?post_type=pgm-portfolio | 1,112 | 2.01 | 33.18 | 29.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
portfolio-gallery-master/portfolio-gallery-master.php 92% from 13 tests
The entry point to "Portfolio Gallery Master" version 1.6.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 818 characters long)
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
There were no executable files found in this plugin1,466 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 126 | 517 | 777 |
CSS | 3 | 37 | 9 | 381 |
JavaScript | 5 | 94 | 50 | 308 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 2 | 3.77% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.43% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
5 PNG files occupy 0.97MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/admin-icon.png | 2.72KB | 1.71KB | ▼ 37.11% |
screenshot-3.png | 103.13KB | 36.91KB | ▼ 64.21% |
screenshot-2.png | 102.01KB | 37.72KB | ▼ 63.02% |
screenshot-4.png | 73.35KB | 23.26KB | ▼ 68.29% |
screenshot-1.png | 715.12KB | 222.65KB | ▼ 68.86% |