Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼12.95ms] 75% from 4 tests
An overview of server-side resources used by GS Shots for Dribbble
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 4,727.68ms on /wp-admin/admin.php?page=gs-drobbble-plugins-lite)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 41.46 ▲1.18 |
Dashboard /wp-admin | 3.63 ▲0.29 | 37.45 ▼22.72 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 44.93 ▲3.84 |
Add New Post /wp-admin/post-new.php | 5.84 ▼0.04 | 74.82 ▼34.10 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 41.28 ▲8.13 |
GS Plugins Pro /wp-admin/admin.php?page=gs-drobbble-plugins-premium | 3.79 | 659.55 |
Help & Usage /wp-admin/admin.php?page=gs-drobbble-plugins-help | 3.63 | 38.46 |
Dribbble Settings /wp-admin/admin.php?page=dribbble-settings | 3.63 | 36.49 |
GS Plugins Lite /wp-admin/admin.php?page=gs-drobbble-plugins-lite | 3.90 | 4,727.68 |
Server storage [IO: ▲1.33MB] [DB: ▲0.04MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
gs_dribbble_settings |
op_client |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
GS Shots for Dribbble: 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,016 ▲255 | 14.91 ▲0.63 | 1.52 ▼0.15 | 39.52 ▼2.60 |
Dashboard /wp-admin | 2,410 ▲239 | 6.43 ▲0.86 | 110.08 ▲26.54 | 91.25 ▲50.58 |
Posts /wp-admin/edit.php | 2,342 ▲242 | 3.75 ▲1.77 | 50.40 ▲7.84 | 75.03 ▲31.65 |
Add New Post /wp-admin/post-new.php | 1,752 ▲215 | 22.55 ▲4.37 | 649.92 ▲49.76 | 30.42 ▼27.44 |
Media Library /wp-admin/upload.php | 1,472 ▲72 | 4.41 ▲0.18 | 82.22 ▼14.62 | 87.14 ▲44.21 |
GS Plugins Pro /wp-admin/admin.php?page=gs-drobbble-plugins-premium | 2,407 | 3.25 | 49.57 | 89.85 |
Help & Usage /wp-admin/admin.php?page=gs-drobbble-plugins-help | 1,149 | 3.34 | 44.03 | 42.88 |
Dribbble Settings /wp-admin/admin.php?page=dribbble-settings | 1,346 | 5.35 | 82.32 | 85.05 |
GS Plugins Lite /wp-admin/admin.php?page=gs-drobbble-plugins-lite | 2,748 | 3.29 | 43.60 | 131.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- op_client
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- gs_dribbble_settings
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant GSD_FILES_DIR - assumed 'GSD_FILES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gs-dribbble-portfolio/gs-dribbble-assets/includes/gs-dribbble-root.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gs-dribbble-portfolio/gs-dribbble-assets/includes/templates/gs_drib_structure_one.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gs-dribbble-portfolio/gs-dribbble-assets/includes/gs-dribbble-shortcode.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gs-dribbble-portfolio/gs_dribbble_portfolio.php:22
- > PHP Fatal error
require_once(): Failed opening required 'GSD_FILES_DIR/includes/gs-dribbble-shortcode.php' (include_path='.:/usr/share/php') in wp-content/plugins/gs-dribbble-portfolio/gs-dribbble-assets/includes/gs-dribbble-root.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gs-dribbble-portfolio/gs-dribbble-assets/gs-common-pages/gs-dribbble-common-pages.php:3
- > PHP Notice
Undefined variable: output in wp-content/plugins/gs-dribbble-portfolio/gs-dribbble-assets/includes/templates/gs_drib_structure_one.php on line 8
- > PHP Warning
require_once(GSD_FILES_DIR/includes/gs-dribbble-shortcode.php): failed to open stream: No such file or directory in wp-content/plugins/gs-dribbble-portfolio/gs-dribbble-assets/includes/gs-dribbble-root.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/gs-dribbble-portfolio/gs-dribbble-assets/includes/templates/gs_drib_structure_one.php:21
- > PHP Fatal error
Uncaught Error: Class 'GS_Dribbble_WeDevs_Settings_API' not found in wp-content/plugins/gs-dribbble-portfolio/gs-dribbble-assets/admin/gs_dribbble_options_config.php:20
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=dribbble-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=dribbble-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: dribbble widget, wordpress widget, dribbble shortcode, dribbble api, dribbble portfolio shots...
gs-dribbble-portfolio/gs_dribbble_portfolio.php 77% from 13 tests
The entry point to "GS Shots for Dribbble" version 1.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 282 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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gs-dribbble-portfolio.php" instead of "gs_dribbble_portfolio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,718 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 712 | 882 | 2,621 |
CSS | 5 | 140 | 15 | 1,981 |
SVG | 2 | 0 | 0 | 566 |
Sass | 1 | 101 | 6 | 521 |
JSON | 1 | 0 | 0 | 21 |
JavaScript | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 37.86 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.70 |
▷ 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 | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gs-dribbble-assets/assets/img/icon-128x128.png | 6.61KB | 3.55KB | ▼ 46.25% |
gs-dribbble-assets/admin/css/gsdribbble.png | 0.53KB | 0.46KB | ▼ 12.24% |