Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.93MB] [CPU: ▼52.60ms] Passed 4 tests
Server-side resources used by FBar Social
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 8.29 ▼33.12 |
Dashboard /wp-admin | 2.07 ▼1.23 | 6.97 ▼43.32 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 5.36 ▼45.59 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 5.66 ▼88.35 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 6.14 ▼25.65 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_socialinfo_table |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for FBar Social
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,263 ▲502 | 18.77 ▲4.15 | 138.15 ▲136.46 | 56.20 ▲11.87 |
Dashboard /wp-admin | 2,196 ▲16 | 5.76 ▲0.09 | 84.78 ▼19.38 | 69.47 ▲24.91 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.26 ▲0.25 | 37.55 ▲0.87 | 35.74 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,692 ▲288 | 20.29 ▲1.93 | 643.40 ▼4.48 | 47.57 ▼2.87 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.28 ▲0.09 | 103.13 ▼4.75 | 69.77 ▲23.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the media-upload handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/fbar-social/headercss.php
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: organic in wp-content/plugins/fbar-social/headercss.php on line 5
- > PHP Notice
Undefined variable: name in wp-content/plugins/fbar-social/headercss.php on line 4
- > PHP Notice
Undefined variable: text_color in wp-content/plugins/fbar-social/headercss.php on line 49
- > PHP Notice
Undefined variable: border_color in wp-content/plugins/fbar-social/headercss.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/fbar-social/fbar-social-plugin.php:11
- > PHP Notice
Undefined variable: display_mode in wp-content/plugins/fbar-social/headercss.php on line 16
- > PHP Notice
Undefined variable: width in wp-content/plugins/fbar-social/headercss.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/fbar-social/views/main.php:9
- > PHP Notice
Undefined variable: display_mode in wp-content/plugins/fbar-social/headercss.php on line 15
- > PHP Notice
Undefined variable: color_scheme in wp-content/plugins/fbar-social/headercss.php on line 13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (User Interface), #2 (Black Full Width Bar), #3 (Blue Full Width Bar), #4 (Black Fixed Width Bar)
fbar-social/fbar-social-plugin.php 85% from 13 tests
The entry point to "FBar Social" version 1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("fbar-social.php" instead of "fbar-social-plugin.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 214 characters long)
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
No dangerous file extensions were detected1,477 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 149 | 128 | 664 |
PHP | 7 | 96 | 65 | 510 |
CSS | 2 | 42 | 14 | 303 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/f.png | 0.75KB | 0.72KB | ▼ 5.05% |
images/y.png | 2.13KB | 1.62KB | ▼ 23.71% |
images/logo.png | 2.32KB | 1.55KB | ▼ 33.22% |
images/i.png | 2.52KB | 1.76KB | ▼ 30.14% |
images/r.png | 1.10KB | 1.12KB | 0.00% |