Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.13ms] 75% from 4 tests
Analyzing server-side resources used by Profile Box Shortcode And Widget
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 671.55ms on /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 37.56 ▼2.62 |
Dashboard /wp-admin | 3.46 ▲0.16 | 48.19 ▼0.68 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.92 ▲4.81 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 89.19 ▼7.16 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.66 ▲1.94 |
Our Theme /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-theme-page | 3.32 | 33.26 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.39 | 32.89 |
All Facebook Likebox /wp-admin/edit.php?post_type=fblb_shortcode_cpt | 3.32 | 34.42 |
Docs /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-doc-page | 3.32 | 34.90 |
Add Facebook Likebox /wp-admin/post-new.php?post_type=fblb_shortcode_cpt | 3.57 | 44.96 |
Free Plugins /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page | 3.63 | 671.55 |
Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_fblikebox_widget_shortcode |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Profile Box Shortcode And Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲146 | 13.30 ▼1.00 | 4.41 ▲1.58 | 40.30 ▼8.55 |
Dashboard /wp-admin | 2,281 ▲93 | 5.81 ▼0.07 | 111.73 ▼2.61 | 40.67 ▼4.26 |
Posts /wp-admin/edit.php | 2,178 ▲92 | 2.07 ▲0.07 | 45.62 ▲8.93 | 40.84 ▲9.03 |
Add New Post /wp-admin/post-new.php | 1,609 ▲76 | 18.41 ▼4.68 | 603.71 ▼65.43 | 63.48 ▼2.23 |
Media Library /wp-admin/upload.php | 1,477 ▲86 | 4.28 ▼0.04 | 100.66 ▼1.73 | 48.68 ▲0.33 |
Our Theme /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-theme-page | 1,002 | 2.10 | 25.75 | 78.98 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,054 | 2.09 | 25.37 | 31.57 |
All Facebook Likebox /wp-admin/edit.php?post_type=fblb_shortcode_cpt | 1,156 | 1.98 | 36.93 | 35.80 |
Docs /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-doc-page | 914 | 2.05 | 27.97 | 41.90 |
Add Facebook Likebox /wp-admin/post-new.php?post_type=fblb_shortcode_cpt | 2,294 | 2.69 | 60.44 | 98.21 |
Free Plugins /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page | 4,286 | 1.81 | 33.58 | 125.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_fblikebox_widget_shortcode
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt
- > Notice in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-cpt.php+74
Undefined variable: columns
- > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt
- > Notice in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-cpt.php+74
Trying to access array offset on value of type null
SRP 0% 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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/facebook-likebox-widget-and-shortcode/docs.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/facebook-likebox-widget-and-shortcode/our-theme/awp-theme.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-meta-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/facebook-likebox-widget-and-shortcode/featured-plugins/featured-plugins.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-shortcode.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-widget-and-shortcode.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/facebook-likebox-widget-and-shortcode/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-cpt.php:24
- > PHP Fatal error
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)
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-theme-page
- > Network (severe)
wp-content/plugins/facebook-likebox-widget-and-shortcode/js/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=fblb_shortcode_cpt
- > Network (severe)
wp-content/plugins/facebook-likebox-widget-and-shortcode/css/toggle-button.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page
- > Network (severe)
wp-content/plugins/facebook-likebox-widget-and-shortcode/css/bootstrap.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page
- > Network (severe)
wp-content/plugins/facebook-likebox-widget-and-shortcode/js/bootstrap.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page
- > Network (severe)
wp-content/plugins/facebook-likebox-widget-and-shortcode/js/featured-plugins/acl-media-upload-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page
- > Network (severe)
wp-content/plugins/facebook-likebox-widget-and-shortcode/js/featured-plugins/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: like box shortcode, like box on post, like box widget, like box on page, like box
facebook-likebox-widget-and-shortcode/facebook-likebox-widget-and-shortcode.php Passed 13 tests
The primary PHP file in "Profile Box Shortcode And Widget" version 1.1.16 is used by WordPress to initiate all plugin functionality
56 characters long description:
A WordPress Social Media Plugin To Show Facebook Likebox
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin13,110 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 1,557 | 80 | 8,853 |
PHP | 8 | 597 | 1,735 | 2,842 |
SVG | 2 | 0 | 0 | 973 |
PO File | 1 | 118 | 131 | 273 |
JavaScript | 4 | 2 | 15 | 169 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 48.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 5 | 4.13% |
▷ Public methods | 95 | 78.51% |
▷ Protected methods | 26 | 21.49% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
our-theme/img/aneeq-premium.png | 165.42KB | 57.84KB | ▼ 65.04% |