Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.82ms] Passed 4 tests
A check of server-side resources used by TP Social Media Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 51.77 ▲8.08 |
Dashboard /wp-admin | 3.38 ▲0.04 | 53.44 ▼11.79 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.06 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 95.01 ▼5.44 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.69 ▼1.04 |
Server storage [IO: ▲1.08MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for TP Social Media Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,084 ▲338 | 15.42 ▲1.04 | 6.31 ▲4.36 | 39.76 ▼6.73 |
Dashboard /wp-admin | 2,380 ▲192 | 6.64 ▲0.74 | 135.55 ▲14.33 | 40.00 ▼2.90 |
Posts /wp-admin/edit.php | 2,286 ▲194 | 3.64 ▲1.65 | 47.48 ▲11.94 | 31.05 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,543 ▲9 | 17.90 ▼5.63 | 656.14 ▼17.03 | 39.48 ▼22.94 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.25 ▼0.00 | 87.90 ▼15.47 | 41.94 ▼4.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-social-media-bar/include/functions.php:124
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-social-media-bar/include/settings.php:5
- > 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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in tp-social-media-bar/assets to your readme.txt
tp-social-media-bar/tp-social-media-bar.php Passed 13 tests
The primary PHP file in "TP Social Media Bar" version 1.0.0 is used by WordPress to initiate all plugin functionality
93 characters long description:
This is a Social Media Bar plugin to social media icons on the site right side for all pages.
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
Everything looks great! No dangerous files found in this plugin7,761 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2,218 | 13 | 4,919 |
PHP | 4 | 43 | 10 | 2,795 |
JavaScript | 2 | 19 | 3 | 47 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 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 | 7 | |
▷ Global constants | 7 | 100.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
No PNG files were detected