Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲5.55MB] [CPU: ▲31.72ms] 50% from 4 tests
Server-side resources used by WordPress Behance Plugin - Make a Portfolio, Feed, Gallery, Slider and More
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 666.94ms on /wp-admin/admin.php?page=gs-behance-plugins-premium)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.55MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.22 ▲5.75 | 69.21 ▲32.91 |
Dashboard /wp-admin | 9.24 ▲5.89 | 94.02 ▲28.94 |
Posts /wp-admin/edit.php | 9.24 ▲5.88 | 77.13 ▲27.98 |
Add New Post /wp-admin/post-new.php | 10.58 ▲4.70 | 136.03 ▲37.04 |
Media Library /wp-admin/upload.php | 9.24 ▲6.01 | 76.65 ▲42.27 |
GS Plugins Lite /wp-admin/admin.php?page=gs-behance-plugins-lite | 9.24 | 705.29 |
GS Plugins Pro /wp-admin/admin.php?page=gs-behance-plugins-premium | 9.24 | 666.94 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.24 | 61.39 |
Server storage [IO: ▲5.11MB] [DB: ▲0.05MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 252 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_gsbeh_shortcodes |
wp_gsbehance |
New WordPress options |
---|
gs_behance_data_table_created |
db_upgraded |
fs_accounts |
gsbeh_plugin_version |
theysaidso_admin_options |
fs_active_plugins |
upgraded_to_3.0.6 |
widget_recent-comments |
widget_theysaidso_widget |
gs_behance_shortcode_table_version |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Behance Plugin - Make a Portfolio, Feed, Gallery, Slider and More
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲193 | 13.50 ▼1.21 | 9.40 ▲7.65 | 27.79 ▼10.66 |
Dashboard /wp-admin | 2,240 ▲63 | 5.49 ▼0.11 | 85.15 ▼11.56 | 80.06 ▲35.26 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 1.95 ▼0.01 | 39.29 ▼0.93 | 37.24 ▲2.25 |
Add New Post /wp-admin/post-new.php | 1,747 ▲221 | 24.61 ▲0.87 | 643.97 ▼27.26 | 36.53 ▼23.64 |
Media Library /wp-admin/upload.php | 1,442 ▲45 | 4.16 ▼0.04 | 95.26 ▼6.96 | 62.82 ▲19.14 |
GS Plugins Lite /wp-admin/admin.php?page=gs-behance-plugins-lite | 2,547 | 2.00 | 34.62 | 129.40 |
GS Plugins Pro /wp-admin/admin.php?page=gs-behance-plugins-premium | 2,152 | 2.05 | 35.53 | 70.09 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,110 | 1.66 | 27.31 | 27.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/gs-behance-portfolio/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 2 tables
- wp_gsbehance
- wp_gsbeh_shortcodes
- This plugin did not uninstall successfully, leaving 13 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- gs_behance_data_table_created
- upgraded_to_3.0.6
- fs_active_plugins
- fs_debug_mode
- db_upgraded
- gs_behance_shortcode_table_version
- widget_theysaidso_widget
- ...
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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gs-behance-portfolio/includes/integrations/beaver/includes/frontend.php
- 37× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function GSBEH\\do_action() in wp-content/plugins/gs-behance-portfolio/templates/gs_behance_stats_style_1.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function GSBEH\\plugin() in wp-content/plugins/gs-behance-portfolio/templates/gs_behance_structure_six_profile.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function GSBEH\\plugin() in wp-content/plugins/gs-behance-portfolio/templates/gs_behance_structure_seven_filter.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gs-behance-portfolio/includes/shortcode-builder/page.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function GSBEH\\do_action() in wp-content/plugins/gs-behance-portfolio/templates/gs_behance_popup_style_1_and_2.php:129
- > PHP Notice
Undefined variable: gs_behance_shots in wp-content/plugins/gs-behance-portfolio/templates/gs_behance_stats_style_1.php on line 10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gs-behance-portfolio/templates/gs_behance_hover_style_4.php on line 8
- > PHP Warning
Use of undefined constant GSBEH_PLUGIN_URI - assumed 'GSBEH_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/gs-behance-portfolio/includes/shortcode-builder/page.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function GSBEH\\do_action() in wp-content/plugins/gs-behance-portfolio/templates/gs_behance_structure_slider_1.php:59
- > PHP Notice
Undefined variable: gs_behance_shots in wp-content/plugins/gs-behance-portfolio/templates/gs_behance_hover_style_4.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
5 plugin tags: behance gallery plugin, behance wordpress, wordpress behance plugin, behance, behance plugin
gs-behance-portfolio/gs-behance-portfolio-lite.php 77% from 13 tests
"WordPress Behance Plugin - Make a Portfolio, Feed, Gallery, Slider and More" version 3.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 507 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gs-behance-portfolio.php" instead of "gs-behance-portfolio-lite.php")
- 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 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin38,461 lines of code in 199 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 159 | 9,450 | 18,126 | 37,026 |
CSS | 23 | 48 | 11 | 602 |
Sass | 1 | 101 | 6 | 521 |
JavaScript | 14 | 72 | 65 | 310 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 63.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 3 | 3.95% |
▷ Concrete classes | 73 | 96.05% |
▷ Final classes | 3 | 4.11% |
Methods | 1,512 | |
▷ Static methods | 215 | 14.22% |
▷ Public methods | 1,094 | 72.35% |
▷ Protected methods | 31 | 2.05% |
▷ Private methods | 387 | 25.60% |
Functions | 115 | |
▷ Named functions | 110 | 95.65% |
▷ Anonymous functions | 5 | 4.35% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/wordpress-behance-plugin.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/img/icon-128x128.png | 29.52KB | 10.00KB | ▼ 66.10% |
assets/img/icon.png | 1.23KB | 1.28KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |