Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▼5.39ms] Passed 4 tests
Analyzing server-side resources used by Portfolio Responsive Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.55 | 38.01 ▼3.24 |
Dashboard /wp-admin | 3.90 ▲0.56 | 49.30 ▼14.18 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 51.11 ▲6.24 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 85.39 ▼8.97 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 39.38 ▲4.82 |
How to use /wp-admin/admin.php?page=portfolio-responsive-gallery-portfolio-how_to_use | 3.85 | 41.83 |
Portfolio Responsive Gallery /wp-admin/options-general.php?page=portfolio-responsive-gallery | 3.86 | 44.68 |
Portfolios /wp-admin/admin.php?page=portfolio-responsive-gallery | 3.86 | 42.60 |
Attributes /wp-admin/admin.php?page=portfolio-responsive-gallery-portfolio-attributes | 3.86 | 47.10 |
Server storage [IO: ▲2.57MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 113 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_ays_portfolio_items |
wp_ays_portfolio |
wp_ays_portfolio_attributes |
New WordPress options |
---|
can_compress_scripts |
ays_prg_banner_time |
theysaidso_admin_options |
ays_prg_db_version |
widget_recent-posts |
widget_recent-comments |
ays_prg_sale_btn_for_two_months |
ays_prg_sale_btn |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Portfolio Responsive Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲69 | 14.21 ▼0.52 | 1.61 ▼0.37 | 37.15 ▼6.52 |
Dashboard /wp-admin | 2,231 ▲50 | 5.56 ▼0.13 | 94.47 ▼8.59 | 82.20 ▲40.28 |
Posts /wp-admin/edit.php | 2,151 ▲48 | 1.95 ▼0.01 | 36.45 ▲0.19 | 35.41 ▲3.52 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 22.87 ▼0.32 | 686.33 ▼50.18 | 47.15 ▼13.09 |
Media Library /wp-admin/upload.php | 1,448 ▲45 | 4.23 ▲0.05 | 97.98 ▲1.34 | 67.32 ▲26.06 |
How to use /wp-admin/admin.php?page=portfolio-responsive-gallery-portfolio-how_to_use | 1,675 | 5.04 | 77.44 | 192.21 |
Portfolio Responsive Gallery /wp-admin/options-general.php?page=portfolio-responsive-gallery | 1,834 | 5.04 | 66.78 | 114.31 |
Portfolios /wp-admin/admin.php?page=portfolio-responsive-gallery | 1,834 | 5.04 | 66.49 | 121.56 |
Attributes /wp-admin/admin.php?page=portfolio-responsive-gallery-portfolio-attributes | 1,864 | 5.06 | 64.16 | 126.15 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- db_upgraded
- ays_prg_banner_time
- widget_recent-comments
- can_compress_scripts
- ays_prg_sale_btn_for_two_months
- widget_recent-posts
- ays_prg_sale_btn
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/portfolio-responsive-gallery/public/partials/portfolio-responsive-gallery-public-display.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/portfolio-responsive-gallery/admin/partials/attributes/portfolio-responsive-gallery-attributes-display.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/portfolio-responsive-gallery/includes/lists/class-portfolio-responsive-gallery-list-table.php:4
- > PHP Warning
Use of undefined constant AYS_PRG_ADMIN_URL - assumed 'AYS_PRG_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/portfolio-responsive-gallery/admin/partials/portfolio-responsive-gallery-admin-display.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/portfolio-responsive-gallery/admin/partials/attributes/actions/portfolio-responsive-gallery-attributes-actions.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/portfolio-responsive-gallery/admin/partials/how-to-use/portfolio-responsive-gallery-how-to-use.php:9
- > PHP Warning
Use of undefined constant AYS_PRG_ADMIN_URL - assumed 'AYS_PRG_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/portfolio-responsive-gallery/admin/partials/attributes/portfolio-responsive-gallery-attributes-display.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/portfolio-responsive-gallery/includes/lists/class-portfolio-responsive-gallery-attributes-list-table.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/portfolio-responsive-gallery/admin/partials/actions/portfolio-responsive-gallery-admin-actions.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/portfolio-responsive-gallery/admin/partials/portfolio-responsive-gallery-admin-display.php:24
- > PHP Warning
Use of undefined constant AYS_PRG_ADMIN_URL - assumed 'AYS_PRG_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/portfolio-responsive-gallery/admin/partials/attributes/actions/portfolio-responsive-gallery-attributes-actions.php on line 30
- > 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)
No browser errors were detected
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 need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in portfolio-responsive-gallery/assets to your readme.txt
portfolio-responsive-gallery/portfolio-responsive-gallery.php Passed 13 tests
The main file in "Portfolio Responsive Gallery" v. 1.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
Portfolio plugin for companies, designers, photographers, artists, freelancers.
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
Success! There were no dangerous files found in this plugin14,619 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 1,895 | 1,269 | 7,090 |
PHP | 18 | 604 | 865 | 3,562 |
JavaScript | 22 | 340 | 364 | 2,070 |
LESS | 6 | 467 | 360 | 1,063 |
PO File | 2 | 666 | 1,500 | 695 |
SVG | 8 | 0 | 0 | 139 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 87.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 13 | 13.27% |
▷ Public methods | 91 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 7.14% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
25 PNG files occupy 0.78MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/skins/light/sprite.png | 14.60KB | 6.18KB | ▼ 57.63% |
admin/images/logo_final.png | 27.94KB | 3.97KB | ▼ 85.80% |
admin/images/ays_pro.png | 18.67KB | 4.33KB | ▼ 76.82% |
admin/images/winter_bundle_logo.png | 25.05KB | 6.65KB | ▼ 73.46% |
admin/images/youtube.png | 1.00KB | 1.19KB | 0.00% |