Benchmarks
Plugin footprint 82% 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.52MB] [CPU: ▲1.17ms] 75% from 4 tests
This is a short check of server-side resources used by WordPress Portfolio Plugin - A Plugin for Making Filterable Portfolio Grid, Portfolio Slider and more
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 648.26ms on /wp-admin/edit.php?post_type=gs-portfolio&page=gs-portfolio-plugins-premium)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 40.51 ▼0.24 |
Dashboard /wp-admin | 3.88 ▲0.58 | 53.34 ▼4.75 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 59.71 ▲15.35 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 94.16 ▲1.27 |
Media Library /wp-admin/upload.php | 3.71 ▲0.49 | 41.20 ▲8.39 |
Portfolio Settings /wp-admin/edit.php?post_type=gs-portfolio&page=portfolio-settings | 3.70 | 38.87 |
GS Plugins Lite /wp-admin/edit.php?post_type=gs-portfolio&page=gs-portfolio-plugins-lite | 3.99 | 634.24 |
GS Plugins Pro /wp-admin/edit.php?post_type=gs-portfolio&page=gs-portfolio-plugins-premium | 3.87 | 648.26 |
Help & Usage /wp-admin/edit.php?post_type=gs-portfolio&page=gs-portfolio-plugins-help | 3.71 | 38.65 |
All Portfolios /wp-admin/edit.php?post_type=gs-portfolio | 3.84 | 43.37 |
Add New Portfolio /wp-admin/post-new.php?post_type=gs-portfolio | 3.89 | 49.26 |
Server storage [IO: ▲1.48MB] [DB: ▲0.04MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
gs_p_advance |
gs_p_general |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Portfolio Plugin - A Plugin for Making Filterable Portfolio Grid, Portfolio Slider and more
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,151 ▲390 | 15.52 ▲0.99 | 7.88 ▲6.19 | 37.28 ▼8.64 |
Dashboard /wp-admin | 2,436 ▲256 | 6.65 ▲0.81 | 109.06 ▲11.64 | 90.95 ▲47.15 |
Posts /wp-admin/edit.php | 2,379 ▲279 | 3.83 ▲1.88 | 61.20 ▲24.42 | 66.23 ▲32.31 |
Add New Post /wp-admin/post-new.php | 1,699 ▲173 | 22.72 ▼0.42 | 616.72 ▼86.75 | 172.86 ▲111.61 |
Media Library /wp-admin/upload.php | 1,522 ▲122 | 4.54 ▲0.39 | 95.14 ▼7.97 | 77.76 ▲33.60 |
Portfolio Settings /wp-admin/edit.php?post_type=gs-portfolio&page=portfolio-settings | 1,667 | 6.03 | 123.36 | 69.35 |
GS Plugins Lite /wp-admin/edit.php?post_type=gs-portfolio&page=gs-portfolio-plugins-lite | 2,757 | 3.36 | 41.17 | 175.61 |
GS Plugins Pro /wp-admin/edit.php?post_type=gs-portfolio&page=gs-portfolio-plugins-premium | 2,422 | 3.34 | 42.00 | 99.59 |
Help & Usage /wp-admin/edit.php?post_type=gs-portfolio&page=gs-portfolio-plugins-help | 1,158 | 3.32 | 44.34 | 37.45 |
All Portfolios /wp-admin/edit.php?post_type=gs-portfolio | 1,312 | 3.67 | 44.68 | 26.59 |
Add New Portfolio /wp-admin/post-new.php?post_type=gs-portfolio | 2,375 | 8.04 | 167.41 | 64.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- gs_p_advance
- widget_theysaidso_widget
- gs_p_general
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gs-portfolio/gsportfolio-files/gs-common-pages/gs-portfolio-common-pages.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gs-portfolio/gs-portfolio.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-portfolio/gsportfolio-files/includes/gs-portfolio-cpt.php:46
- > PHP Fatal error
Uncaught Error: Class 'GS_portfolio_WeDevs_Settings_API' not found in wp-content/plugins/gs-portfolio/gsportfolio-files/admin/gs_portfolio_options_config.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function gs_p_get_option() in wp-content/plugins/gs-portfolio/gsportfolio-files/includes/templates/gs_portfolio_structure_one.php:4
- > PHP Warning
Use of undefined constant GSPORTFOLIO_FILES_DIR - assumed 'GSPORTFOLIO_FILES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gs-portfolio/gsportfolio-files/includes/gs-portfolio-root.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function gs_p_get_option() in wp-content/plugins/gs-portfolio/gsportfolio-files/includes/templates/gs_portfolio_sthree_kira.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-portfolio/gsportfolio-files/gs-portfolio-script.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-portfolio/gsportfolio-files/includes/gs-portfolio-metabox.php:14
- > PHP Warning
require_once(GSPORTFOLIO_FILES_DIR/includes/gs-portfolio-cpt.php): failed to open stream: No such file or directory in wp-content/plugins/gs-portfolio/gsportfolio-files/includes/gs-portfolio-root.php on line 4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=gs-portfolio&page=portfolio-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/edit.php?post_type=gs-portfolio&page=portfolio-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: portfolio grid, wordpress portfolio plugin, best portfolio plugin wordpress, portfolio slider, filterable portfolio
gs-portfolio/gs-portfolio.php 85% from 13 tests
The main file in "WordPress Portfolio Plugin - A Plugin for Making Filterable Portfolio Grid, Portfolio Slider and more" v. 1.6.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 299 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected7,960 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 271 | 116 | 3,258 |
PHP | 19 | 868 | 957 | 3,255 |
SVG | 3 | 0 | 0 | 571 |
Sass | 1 | 101 | 6 | 521 |
JavaScript | 4 | 122 | 91 | 334 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 36.71 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 1 | 0.72% |
▷ Public methods | 104 | 75.36% |
▷ Protected methods | 6 | 4.35% |
▷ Private methods | 28 | 20.29% |
Functions | 45 | |
▷ Named functions | 43 | 95.56% |
▷ Anonymous functions | 2 | 4.44% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gsportfolio-files/assets/img/icon-128x128.png | 15.29KB | 6.64KB | ▼ 56.55% |