Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/gplus/lib/service/apiUtils.php+58
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.51MB] [CPU: ▼45.03ms] Passed 4 tests
An overview of server-side resources used by GPlus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.48 ▼0.98 | 9.47 ▼31.80 |
Dashboard /wp-admin | 2.49 ▼0.81 | 11.30 ▼36.75 |
Posts /wp-admin/edit.php | 2.49 ▼0.86 | 10.47 ▼34.01 |
Add New Post /wp-admin/post-new.php | 2.49 ▼3.39 | 11.90 ▼77.56 |
Media Library /wp-admin/upload.php | 2.49 ▼0.74 | 8.96 ▼28.09 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/gplus/" and "wp-content/uploads/"
- (new file) wp-content/cache/.empty
Filesystem: 60 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_googlepluswidget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by GPlus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.36 | 1.76 ▼0.18 | 40.45 ▼8.44 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.05 | 101.37 ▼1.36 | 40.29 ▼10.10 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.08 | 36.88 ▼1.31 | 32.54 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.19 ▲0.02 | 640.32 ▼41.25 | 55.02 ▲10.28 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.06 | 93.92 ▼7.89 | 40.71 ▼6.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in GooglePlusWidget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_googlepluswidget
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
- 65× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'service/apiModel.php' (include_path='.:/usr/share/php') in wp-content/plugins/gplus/lib/contrib/apiLatitudeService.php on line 18
- > PHP Warning
require_once(service/apiModel.php): failed to open stream: No such file or directory in wp-content/plugins/gplus/lib/contrib/apiWebfontsService.php on line 18
- > PHP Warning
require_once(service/apiModel.php): failed to open stream: No such file or directory in wp-content/plugins/gplus/lib/contrib/apiCalendarService.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'service/apiModel.php' (include_path='.:/usr/share/php') in wp-content/plugins/gplus/lib/contrib/apiModeratorService.php on line 18
- > PHP Warning
require_once(service/apiModel.php): failed to open stream: No such file or directory in wp-content/plugins/gplus/lib/contrib/apiPredictionService.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'service/apiModel.php' (include_path='.:/usr/share/php') in wp-content/plugins/gplus/lib/contrib/apiWebfontsService.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'apiServiceResource' not found in wp-content/plugins/gplus/lib/contrib/apiBigqueryService.php:27
- > PHP Warning
require_once(service/apiModel.php): failed to open stream: No such file or directory in wp-content/plugins/gplus/lib/contrib/apiLatitudeService.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'service/apiModel.php' (include_path='.:/usr/share/php') in wp-content/plugins/gplus/lib/contrib/apiPagespeedonlineService.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'service/apiServiceResource.php' (include_path='.:/usr/share/php') in wp-content/plugins/gplus/lib/service/apiService.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This shows the rendering of the Widget in the sidebar of a WP blog.), #2 (This shows how to activate gplus in the Plugins menu in the WP Admin backend), #3 (Configuring the settings for the gplus widget in the WP Admin backend.)
gplus/gplus.php Passed 13 tests
This is the main PHP file of "GPlus" version 2012.06.20, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
A widget that shows Google+ Activities. Specify the G+ id and the API Key, and place it on your blog template, and the widget does the rest.
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
There were no executable files found in this plugin19,576 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 1,329 | 5,494 | 19,576 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 2.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 527 | |
▷ Abstract classes | 4 | 0.76% |
▷ Concrete classes | 523 | 99.24% |
▷ Final classes | 0 | 0.00% |
Methods | 4,058 | |
▷ Static methods | 26 | 0.64% |
▷ Public methods | 4,016 | 98.97% |
▷ Protected methods | 9 | 0.22% |
▷ Private methods | 33 | 0.81% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 3 | 20.00% |
▷ Class constants | 12 | 80.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 36.60KB | 21.40KB | ▼ 41.55% |
screenshot-1.png | 14.17KB | 7.21KB | ▼ 49.12% |
i/gplus-logo-48x48.png | 3.59KB | 2.21KB | ▼ 38.52% |
screenshot-3.png | 12.69KB | 7.70KB | ▼ 39.36% |