Benchmarks
Plugin footprint 82% 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.51MB] [CPU: ▲0.68ms] 75% from 4 tests
Analyzing server-side resources used by GS Portfolio for Envato
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 625.28ms on /wp-admin/admin.php?page=gs-envato-plugins-premium)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.48 | 46.69 ▲7.21 |
Dashboard /wp-admin | 3.87 ▲0.57 | 61.02 ▲3.86 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 55.84 ▲8.31 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.50 | 91.42 ▼16.67 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 45.58 ▲9.55 |
Envato Settings /wp-admin/admin.php?page=envato-settings | 3.69 | 41.85 |
GS Plugins Lite /wp-admin/admin.php?page=gs-envato-plugins-lite | 3.97 | 662.80 |
Help & Usage /wp-admin/admin.php?page=gs-envato-plugins-help | 3.70 | 40.55 |
GS Plugins Pro /wp-admin/admin.php?page=gs-envato-plugins-premium | 3.86 | 625.28 |
Server storage [IO: ▲1.35MB] [DB: ▲0.04MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
gs_envato_author_settings |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
gs_envato_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
gs_envato_style_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for GS Portfolio for Envato
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,048 ▲302 | 14.71 ▲0.74 | 2.23 ▲0.48 | 46.03 ▲7.65 |
Dashboard /wp-admin | 2,445 ▲270 | 6.50 ▲0.79 | 116.17 ▲12.59 | 87.17 ▲45.83 |
Posts /wp-admin/edit.php | 2,370 ▲273 | 3.84 ▲1.84 | 52.62 ▲19.28 | 68.50 ▲33.23 |
Add New Post /wp-admin/post-new.php | 1,692 ▲147 | 22.77 ▼0.28 | 660.42 ▼32.42 | 181.40 ▲128.94 |
Media Library /wp-admin/upload.php | 1,504 ▲107 | 4.72 ▲0.51 | 115.51 ▲15.86 | 88.94 ▲45.53 |
Envato Settings /wp-admin/admin.php?page=envato-settings | 1,769 | 6.08 | 128.15 | 61.04 |
GS Plugins Lite /wp-admin/admin.php?page=gs-envato-plugins-lite | 2,743 | 3.44 | 44.26 | 110.13 |
Help & Usage /wp-admin/admin.php?page=gs-envato-plugins-help | 1,147 | 3.29 | 45.43 | 47.37 |
GS Plugins Pro /wp-admin/admin.php?page=gs-envato-plugins-premium | 2,408 | 3.43 | 48.59 | 58.51 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- gs_envato_author_settings
- widget_theysaidso_widget
- gs_envato_style_settings
- gs_envato_settings
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please fix the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'GS_envato_WeDevs_Settings_API' not found in wp-content/plugins/gs-envato-portfolio/gs-envato-assets/admin/gs_envato_options_config.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gs-envato-portfolio/gs-envato-assets/gs-common-pages/gs-envato-common-pages.php:3
- > PHP Notice
Undefined variable: output in wp-content/plugins/gs-envato-portfolio/gs-envato-assets/includes/templates/gs_envato_theme1_grid.php on line 3
- > PHP Notice
Undefined variable: count in wp-content/plugins/gs-envato-portfolio/gs-envato-assets/includes/templates/gs_envato_theme1_grid.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-envato-portfolio/gs-envato-assets/gs-envato-scripts.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gs-envato-portfolio/gs-envato-assets/includes/gs-envato-item-shortcode.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gs-envato-portfolio/gs_envato_market.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=envato-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=envato-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
gs-envato-portfolio/gs_envato_market.php 77% from 13 tests
"GS Portfolio for Envato" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("gs-envato-portfolio.php" instead of "gs_envato_market.php")
- Description: Keep the plugin description shorter than 140 characters (currently 302 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,930 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 724 | 884 | 2,843 |
CSS | 7 | 96 | 32 | 1,789 |
SVG | 2 | 0 | 0 | 566 |
Sass | 1 | 101 | 6 | 521 |
JavaScript | 1 | 51 | 65 | 190 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 37.57 |
▷ 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 | 141 | |
▷ Static methods | 1 | 0.71% |
▷ Public methods | 107 | 75.89% |
▷ Protected methods | 6 | 4.26% |
▷ Private methods | 28 | 19.86% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gs-envato-assets/assets/img/icon-128x128.png | 2.74KB | 1.64KB | ▼ 40.27% |