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
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/google-wordpress-widgets/google-plus-wordpress-widget.php+151
Methods with the same name as their class will not be constructors in a future version of PHP; Google_Plus_Widget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼55.68ms] Passed 4 tests
Analyzing server-side resources used by Google+ Plus Wordpress Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.57 ▼38.56 |
Dashboard /wp-admin | 2.18 ▼1.13 | 6.27 ▼47.06 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 6.76 ▼43.50 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 6.37 ▼93.61 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 6.22 ▼33.73 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_googleplus |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Google+ Plus Wordpress Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲68 | 13.20 ▼1.18 | 5.38 ▲3.63 | 42.32 ▲0.47 |
Dashboard /wp-admin | 2,224 ▲21 | 4.88 ▼0.97 | 102.82 ▼9.81 | 40.96 ▼6.10 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.03 | 37.67 ▲1.44 | 36.45 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 17.71 ▲0.02 | 636.63 ▼59.28 | 48.86 ▼6.00 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.25 ▲0.02 | 101.74 ▼15.36 | 43.95 ▼5.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/google-wordpress-widgets/google-plus-wordpress-widget.php+151
Methods with the same name as their class will not be constructors in a future version of PHP; Google_Plus_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_googleplus
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/google-wordpress-widgets/google-plus-wordpress-widget.php:151
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Latest post/updates display), #2 (Enter your Google+ ID, Your Google+ ID are 21 digit number behind the http://plus.google.com/ part of the url at your profile page), #3 (Click "Scan Me" to view QR Code), #4 (Just show profile without updates/post)
google-wordpress-widgets/google-plus-wordpress-widget.php 92% from 13 tests
This is the main PHP file of "Google+ Plus Wordpress Widget" version 5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("google-wordpress-widgets.php" instead of "google-plus-wordpress-widget.php")
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 plugin201 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 360 | 45 | 201 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
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 |
screenshot-1.png | 4.70KB | 2.65KB | ▼ 43.50% |