Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Parse error in wp-content/plugins/my-social-widgets-with-shortcode/my-social-widgets.php+274
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.43ms] Passed 4 tests
An overview of server-side resources used by My Social Widgets With ShortCode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.90 ▼4.21 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.97 ▲1.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.22 ▲3.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.47 ▼2.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.72 ▲3.24 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for My Social Widgets With ShortCode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.27 ▼1.12 | 4.36 ▲2.30 | 46.51 ▼8.13 |
Dashboard /wp-admin | 2,206 ▲18 | 4.99 ▼0.85 | 99.01 ▼3.84 | 39.00 ▼3.66 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▲0.00 | 38.94 ▼1.80 | 28.78 ▼13.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 22.90 ▼0.44 | 611.73 ▼30.78 | 63.90 ▲10.15 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.24 ▲0.00 | 94.28 ▼4.17 | 41.55 ▼3.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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 | 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 take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/my-social-widgets-with-shortcode/widgets/twitter.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/my-social-widgets-with-shortcode/widgets/facebook.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/my-social-widgets-with-shortcode/widgets/recent_posts.php:7
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/my-social-widgets-with-shortcode/my-social-widgets.php on line 274
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tested up to: The plugin version is formatted incorrectly
my-social-widgets-with-shortcode/my-social-widgets.php 92% from 13 tests
The entry point to "My Social Widgets With ShortCode" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("my-social-widgets-with-shortcode.php" instead of "my-social-widgets.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,568 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 267 | 392 | 1,695 |
PHP | 4 | 103 | 48 | 577 |
CSS | 1 | 65 | 11 | 296 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 8.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twitter.png | 1.06KB | 0.33KB | ▼ 68.87% |