Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php+131
Undefined variable: key_base
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.69ms] Passed 4 tests
A check of server-side resources used by Dimbal Social Popup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.43 ▼6.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.89 ▼5.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.21 ▼6.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.04 ▼4.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.43 ▼1.41 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Dimbal Social Popup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.31 ▼1.09 | 1.70 ▼0.09 | 41.06 ▼8.04 |
Dashboard /wp-admin | 2,203 ▲15 | 5.80 ▼0.09 | 101.30 ▼16.41 | 39.92 ▼9.32 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 35.48 ▼0.88 | 32.70 ▼4.75 |
Add New Post /wp-admin/post-new.php | 1,542 ▲20 | 18.94 ▼4.12 | 641.67 ▼175.13 | 60.60 ▲6.22 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.30 ▲0.11 | 102.47 ▲0.32 | 45.80 ▼1.53 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/dimbal-social-popup/class.DimbalSocialSharing.php
- > /wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: settings in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 140
- > PHP Notice
Undefined variable: settings in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 167
- > PHP Notice
Undefined variable: key_base in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 149
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 167
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 140
- > PHP Notice
Undefined variable: key_base in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 182
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 158
- > PHP Notice
Undefined variable: settings in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 158
- > PHP Notice
Undefined variable: key_base in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 193
- > PHP Notice
Undefined variable: selected in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 182
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: post sharing, social popup, facebook sharing, post popup, facebook post sharing...
dimbal-social-popup/index.php 92% from 13 tests
The main PHP file in "Dimbal Social Popup" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dimbal-social-popup.php" instead of "index.php")
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
There were no executable files found in this plugin634 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 48 | 389 |
JavaScript | 1 | 22 | 17 | 132 |
CSS | 2 | 8 | 0 | 113 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 5 | |
▷ Named functions | 5 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
social-icons-16/social_twitter_button_blue_16.png | 0.74KB | 0.84KB | 0.00% |
social-icons-16/social_facebook_box_blue_16.png | 0.56KB | 0.68KB | 0.00% |
social-icons-16/social_twitter_box_blue_16.png | 0.62KB | 0.83KB | 0.00% |
social-icons-16/social_lastfm_box_red_16.png | 0.70KB | 0.90KB | 0.00% |
social-icons-16/social_reddit_button_16.png | 0.73KB | 0.69KB | ▼ 5.86% |