Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.22MB] [CPU: ▼270.13ms] Passed 4 tests
Analyzing server-side resources used by Portfolio Gallery Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 42.00 ▲18.94 |
Dashboard /wp-admin | 3.17 ▲0.12 | 45.39 ▲0.50 |
Posts /wp-admin/edit.php | 3.28 ▲0.18 | 45.27 ▲5.46 |
Add New Post /wp-admin/post-new.php | 4.15 ▼1.27 | 46.94 ▼1,084.02 |
Media Library /wp-admin/upload.php | 3.12 ▲0.11 | 33.99 ▼2.46 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=ims_portfoliotag&post_type=ims_portfolio | 3.13 | 38.06 |
Add New /wp-admin/post-new.php?post_type=ims_portfolio | 3.05 | 33.76 |
All Portfolios /wp-admin/edit.php?post_type=ims_portfolio | 3.30 | 51.33 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 2 new options
New WordPress options |
---|
ims_portfolio_dummy_data |
ims_portfoliotag_children |
Browser metrics Passed 4 tests
Portfolio Gallery Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,809 ▲203 | 16.33 ▲0.84 | 11.33 ▲1.32 | 45.87 ▼2.57 |
Dashboard /wp-admin | 2,974 ▲124 | 6.14 ▲0.27 | 136.19 ▼3.86 | 103.19 ▼0.37 |
Posts /wp-admin/edit.php | 2,750 ▲44 | 2.70 ▼0.11 | 68.84 ▲1.63 | 92.93 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,681 ▲202 | 17.41 ▲0.31 | 358.01 ▲9.92 | 111.19 ▲6.60 |
Media Library /wp-admin/upload.php | 1,816 ▲41 | 5.03 ▲0.05 | 146.43 ▲0.29 | 115.67 ▼2.63 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=ims_portfoliotag&post_type=ims_portfolio | 1,936 | 2.51 | 62.01 | 79.61 |
Add New /wp-admin/post-new.php?post_type=ims_portfolio | 3,210 | 8.93 | 215.27 | 143.20 |
All Portfolios /wp-admin/edit.php?post_type=ims_portfolio | 2,541 | 2.70 | 69.56 | 83.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- ims_portfolio_dummy_data
- ims_portfoliotag_children
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=ims_portfolio
- > Notice in wp-content/plugins/portfolio-gallery-by-ims/admin/class-ims-portfolio-admin.php+148
Undefined index: post_type
- > GET request to /wp-admin/post-new.php?post_type=ims_portfolio
- > Notice in wp-content/plugins/portfolio-gallery-by-ims/admin/class-ims-portfolio-admin.php+155
Undefined index: ims_button_name
- > GET request to /wp-admin/post-new.php?post_type=ims_portfolio
- > Notice in wp-content/plugins/portfolio-gallery-by-ims/admin/class-ims-portfolio-admin.php+156
Undefined index: ims_button_url
- > GET request to /wp-admin/post-new.php?post_type=ims_portfolio
- > Notice in wp-content/plugins/portfolio-gallery-by-ims/admin/class-ims-portfolio-admin.php+157
Undefined index: ims_thumb_img
- > GET request to /wp-admin/post-new.php?post_type=ims_portfolio
- > Notice in wp-content/plugins/portfolio-gallery-by-ims/admin/class-ims-portfolio-admin.php+158
Undefined index: ims_large_img
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/portfolio-gallery-by-ims/public/partials/ims-portfolio-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/portfolio-gallery-by-ims/admin/partials/ims-portfolio-admin-display.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ims_portfolio
- > Network (severe)
wp-content/plugins/portfolio-gallery-by-ims/admin/css/plugin-name-admin.css?ver=1.0.3 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #2, #3, #4 in portfolio-gallery-by-ims/assets to your readme.txt
- Screenshots: These screenshots require images: #6 (**All portfolio list** - See all Portfolio list under menu of Portfolio.), #7 (**Portfolio demo** - Default portfolio demo for you.), #8 (**Gallery detailed view** - Gallary with portfolio and its details view.)
portfolio-gallery-by-ims/portfolio-gallery-by-ims.php 85% from 13 tests
This is the main PHP file of "Portfolio Gallery Plugin" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 237 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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,847 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 478 | 362 | 1,226 |
PHP | 12 | 184 | 538 | 562 |
CSS | 3 | 10 | 5 | 59 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin