Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/google-page-badge/google-plus-page-badge.php+70
Methods with the same name as their class will not be constructors in a future version of PHP; gPlusPageBadge_Widget has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼49.33ms] Passed 4 tests
Server-side resources used by Google+ Page Badge
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.87 ▼34.23 |
Dashboard /wp-admin | 2.11 ▼1.20 | 5.24 ▼42.42 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.53 ▼39.20 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.73 ▼81.47 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.85 ▼29.31 |
Google+ Page Badge /wp-admin/options-general.php?page=plugin | 2.11 | 5.63 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_gpluspagebadge_widget |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google+ Page Badge
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.30 ▼0.07 | 26.89 ▲25.22 | 40.13 ▼6.35 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▲0.03 | 106.72 ▼8.94 | 38.89 ▼8.96 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.04 | 42.25 ▲5.95 | 37.15 ▲2.60 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.47 ▲0.14 | 592.22 ▼93.35 | 46.02 ▼5.62 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.16 ▼0.06 | 97.04 ▼6.11 | 41.79 ▼2.92 |
Google+ Page Badge /wp-admin/options-general.php?page=plugin | 827 | 2.02 | 28.24 | 27.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/google-page-badge/google-plus-page-badge.php+70
Methods with the same name as their class will not be constructors in a future version of PHP; gPlusPageBadge_Widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_gpluspagebadge_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=plugin
- > Deprecated in wp-content/plugins/google-page-badge/google-plus-page-badge.php+70
Methods with the same name as their class will not be constructors in a future version of PHP; gPlusPageBadge_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=plugin
- > Deprecated in wp-content/plugins/google-page-badge/google-plus-page-badge.php+135
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in gPlusPageBadge_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'gpluspb_create_menu' not found or invalid function name
- > GET request to /wp-admin/options-general.php?page=plugin
- > Notice in wp-content/plugins/google-page-badge/google-plus-page-badge.php+150
Undefined index: gpluspb_hidden
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/google-page-badge/google-plus-page-badge.php:68
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The plugin settings page), #2 (The widget settings), #3 (Badge that is displayed when "smallbadge" is the chosen size), #4 (Default badge that is displayed when size is not selected)
google-page-badge/google-plus-page-badge.php 85% from 13 tests
Analyzing the main PHP file in "Google+ Page Badge" version 1.0
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 311 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("google-page-badge.php" instead of "google-plus-page-badge.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin136 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 43 | 29 | 136 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
PNG images were not found in this plugin