Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼129.14ms] Passed 4 tests
This is a short check of server-side resources used by Social Media Popup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.11 ▲0.39 | 34.48 ▲12.42 |
Dashboard /wp-admin | 3.71 ▲0.66 | 68.03 ▲31.07 |
Posts /wp-admin/edit.php | 3.76 ▲0.65 | 52.12 ▲7.33 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.57 | 106.77 ▼542.49 |
Media Library /wp-admin/upload.php | 3.59 ▲0.59 | 40.28 ▲6.17 |
VK /wp-admin/admin.php?page=social_media_popup_free_vkontakte_options | 3.63 | 44.26 |
Facebook /wp-admin/admin.php?page=social_media_popup_free_facebook_options | 3.63 | 41.17 |
SMP Free Options /wp-admin/admin.php?page=social_media_popup_free | 3.57 | 37.80 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 54 new options
New WordPress options |
---|
scp-setting_container_width |
scp-setting_vkontakte_delay_before_render |
scp-setting_container_height |
scp-setting_vkontakte_tab_caption |
scp-setting_facebook_use_small_header |
scp-setting_facebook_width |
scp-setting_delay_before_show_bottom_button |
scp-setting_button_to_close_widget_title |
scp-version |
scp-setting_background_image |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Media Popup
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,962 ▲366 | 16.66 ▲0.94 | 24.13 ▲13.45 | 62.00 ▲10.77 |
Dashboard /wp-admin | 3,060 ▲126 | 6.58 ▲0.45 | 149.32 ▼3.19 | 120.74 ▲2.69 |
Posts /wp-admin/edit.php | 2,832 ▲93 | 2.46 ▼0.38 | 77.43 ▲9.69 | 115.64 ▲19.78 |
Add New Post /wp-admin/post-new.php | 1,693 ▲89 | 22.14 ▲3.15 | 292.58 ▼77.67 | 115.41 ▲1.62 |
Media Library /wp-admin/upload.php | 1,901 ▲91 | 5.36 ▲0.35 | 130.64 ▼29.69 | 129.52 ▲10.48 |
VK /wp-admin/admin.php?page=social_media_popup_free_vkontakte_options | 2,633 | 7.73 | 212.57 | 135.89 |
Facebook /wp-admin/admin.php?page=social_media_popup_free_facebook_options | 2,072 | 7.05 | 169.16 | 135.41 |
SMP Free Options /wp-admin/admin.php?page=social_media_popup_free | 1,218 | 2.86 | 67.78 | 80.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 54 options in the database
- scp-setting_vkontakte_height
- scp-setting_vkontakte_page_url
- scp-setting_vkontakte_color_button
- scp-setting_facebook_show_facepile
- scp-setting_icons_size_on_desktop
- scp-setting_vkontakte_page_or_group_id
- scp-setting_show_close_button_in
- scp-setting_display_after_n_days
- scp-who_should_see_the_popup
- scp-setting_debug_mode
- ...
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SCP_Provider' not found in wp-content/plugins/social-media-popup-free/lib/providers/vkontakte.php:3
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-media-popup-free/tests/bootstrap.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-media-popup-free/templates/copyright.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/social-media-popup-free/tests/test-plugin.php:3
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/social-media-popup-free/tests/bootstrap.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'SCP_Provider' not found in wp-content/plugins/social-media-popup-free/lib/providers/facebook.php:3
- > PHP Warning
Use of undefined constant SMP_PREFIX - assumed 'SMP_PREFIX' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-media-popup-free/templates/copyright.php on line 4
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
social-media-popup-free/social-media-popup-free.php 92% from 13 tests
The main PHP script in "Social Media Popup" version 0.7.5 is automatically included on every request by WordPress
It is important 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,885 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 603 | 578 | 2,454 |
SVG | 1 | 0 | 0 | 685 |
PO File | 1 | 196 | 304 | 267 |
CSS | 4 | 0 | 5 | 204 |
JavaScript | 3 | 39 | 16 | 152 |
Markdown | 2 | 39 | 0 | 109 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 45 | 36.89% |
▷ Public methods | 92 | 75.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 30 | 24.59% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
There are no PNG files in this plugin