Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/plugin.php+125
Undefined index: setup_is_being_done
Server metrics [RAM: ▼0.83MB] [CPU: ▼33.46ms] Passed 4 tests
Analyzing server-side resources used by Fast Custom Social Share by CodeBard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 44.78 ▲4.22 |
Dashboard /wp-admin | 3.12 ▼0.19 | 26.26 ▼27.44 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 23.58 ▼26.20 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 24.66 ▼67.77 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 22.63 ▼12.43 |
Fast Social Share /wp-admin/admin.php?page=setup_wizard_cb_p2 | 3.12 | 22.97 |
Server storage [IO: ▲2.14MB] [DB: ▲0.03MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 555 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
cb_p2_lang_en-US |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
cb_p2_options |
Browser metrics Passed 4 tests
Checking browser requirements for Fast Custom Social Share by CodeBard
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.30 ▼0.06 | 1.97 ▲0.34 | 48.70 ▲2.61 |
Dashboard /wp-admin | 2,209 ▲32 | 5.50 ▼0.07 | 94.27 ▼6.14 | 82.91 ▲38.03 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.11 ▲0.07 | 36.84 ▼1.09 | 31.64 ▼7.28 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.27 ▲0.13 | 652.46 ▼44.13 | 141.32 ▲88.13 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.17 ▼0.04 | 123.97 ▲17.48 | 82.37 ▲34.18 |
Fast Social Share /wp-admin/admin.php?page=setup_wizard_cb_p2 | 2,553 | 4.53 | 114.90 | 39.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- cb_p2_lang_en-US
- widget_recent-posts
- cb_p2_options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=setup_wizard_cb_p2
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/admin.php?page=setup_wizard_cb_p2
- > Notice in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/plugin.php+1259
Undefined index: cb_p2_tab
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
Please take a closer look at the following
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setting_sections/admin_settings_page_footer.php
- > /wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setting_sections/admin_settings_page_header.php
- > /wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setting_sections/admin_settings_form_header.php
- > /wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setting_sections/reset_settings_form.php
- > /wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setting_sections/admin_settings_form_footer.php
- 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/hardcoded_vars.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setting_sections/date_picker.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setting_sections/general.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/upgrader_skin.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/default_options.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setup_1.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setting_sections/dashboard.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setting_sections/customize_design.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/setting_sections/social_networks.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fast-custom-social-share-by-codebard/plugin/includes/direct_includes.php:7
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: social share, social media, share buttons, share, social media share
fast-custom-social-share-by-codebard/index.php 77% from 13 tests
The entry point to "Fast Custom Social Share by CodeBard" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/lang")
- Main file name: The principal plugin file should be the same as the plugin slug ("fast-custom-social-share-by-codebard.php" instead of "index.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected7,113 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 2,380 | 387 | 5,683 |
CSS | 2 | 250 | 0 | 709 |
JavaScript | 2 | 217 | 34 | 642 |
Smarty | 12 | 5 | 9 | 79 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 164.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 401.00 |
Average method complexity | 5.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 1 | 0.72% |
▷ Public methods | 136 | 98.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.45% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
494 PNG files occupy 1.47MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin/images/set_3/googleplus/42.png | 2.72KB | 1.08KB | ▼ 60.49% |
images/rapier-logo.png | 10.83KB | 4.89KB | ▼ 54.80% |
plugin/images/set_5/facebook/32.png | 1.97KB | 0.99KB | ▼ 50.10% |
plugin/images/set_5/linkedin/42.png | 2.54KB | 1.52KB | ▼ 40.17% |
plugin/images/set_5/pinterest/48.png | 3.42KB | 1.84KB | ▼ 46.31% |