Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/gdp-social-overlay/so-admin.php+11
Use of undefined constant gdpGeneralShow - assumed 'gdpGeneralShow' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.87MB] [CPU: ▼328.56ms] Passed 4 tests
Server-side resources used by #GDP-SocialOverlay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.45 ▲15.98 |
Dashboard /wp-admin | 1.78 ▼1.27 | 5.06 ▼38.92 |
Posts /wp-admin/edit.php | 1.78 ▼1.32 | 5.15 ▼39.47 |
Add New Post /wp-admin/post-new.php | 1.78 ▼3.65 | 5.09 ▼1,197.90 |
Media Library /wp-admin/upload.php | 1.78 ▼1.23 | 5.77 ▼37.96 |
Social Overlay /wp-admin/admin.php?page=gdp-social-overlay | 1.78 | 4.33 |
GDP Plugins /wp-admin/admin.php?page=gdp-plugins | 1.78 | 5.03 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by #GDP-SocialOverlay
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,711 ▲105 | 15.90 ▲0.36 | 8.55 ▲0.98 | 48.57 ▲0.26 |
Dashboard /wp-admin | 2,956 ▲106 | 5.91 ▼0.05 | 132.05 ▲5.95 | 117.19 ▲18.12 |
Posts /wp-admin/edit.php | 2,754 ▲48 | 2.68 ▲0.00 | 65.00 ▼5.10 | 89.65 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,675 ▼178 | 18.85 ▼0.22 | 373.68 ▼62.15 | 109.77 ▼3.86 |
Media Library /wp-admin/upload.php | 1,743 ▼29 | 4.99 ▲0.00 | 130.94 ▼23.77 | 138.17 ▲22.60 |
Social Overlay /wp-admin/admin.php?page=gdp-social-overlay | 1,245 | 2.21 | 56.14 | 63.89 |
GDP Plugins /wp-admin/admin.php?page=gdp-plugins | 986 | 2.22 | 53.58 | 46.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/gdp-social-overlay/so-admin.php+11
Use of undefined constant gdpGeneralShow - assumed 'gdpGeneralShow' (this will throw an Error in a future version of PHP)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gdp-plugins
- > Warning in wp-content/plugins/gdp-social-overlay/so-admin.php+11
Use of undefined constant gdpGeneralShow - assumed 'gdpGeneralShow' (this will throw an Error in a future version of PHP)
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gdp-plugins
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=gdp-social-overlay
- > Notice in wp-content/plugins/gdp-social-overlay/so-admin-view.php+8
Undefined index: refresh-gdpsocial
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gdp-social-overlay
- > Notice in wp-content/plugins/gdp-social-overlay/so-admin-view.php+83
Trying to access array offset on value of type bool
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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdp-social-overlay/so-admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gdp-social-overlay/index.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gdp-social-overlay/so-admin-view.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdp-social-overlay/so-front.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== gdp-social-overlay ===
)
gdp-social-overlay/index.php 85% from 13 tests
This is the main PHP file of "#GDP-SocialOverlay" version 0.1.3, 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:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gdp-social-overlay.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected338 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 30 | 16 | 228 |
CSS | 1 | 5 | 0 | 66 |
JavaScript | 1 | 7 | 0 | 44 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.70 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.97MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 185.66KB | 81.54KB | ▼ 56.08% |
assets/screenshot-2.png | 47.30KB | 0.00KB | ▼ 100.00% |
screenshot-4.png | 89.16KB | 0.00KB | ▼ 100.00% |
screenshot-2.png | 47.30KB | 0.00KB | ▼ 100.00% |
screenshot-3.png | 77.90KB | 0.00KB | ▼ 100.00% |