Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.91MB] [CPU: ▼34.97ms] Passed 4 tests
An overview of server-side resources used by Simple Gplus Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 36.20 ▲0.44 |
Dashboard /wp-admin | 3.04 ▼0.27 | 21.97 ▼27.46 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 23.02 ▼22.45 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 23.72 ▼74.18 |
Media Library /wp-admin/upload.php | 3.04 ▼0.20 | 22.50 ▼15.79 |
Simple Gplus Widget /wp-admin/options-general.php?page=simple-gplus-widget/simple-gplus-widget.php | 3.04 | 24.71 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Gplus Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 14.48 ▲0.17 | 1.62 ▼0.37 | 39.61 ▼5.02 |
Dashboard /wp-admin | 2,206 ▲17 | 5.77 ▲0.69 | 94.80 ▼31.20 | 40.99 ▼6.29 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.14 | 34.51 ▼2.44 | 36.25 ▲2.52 |
Add New Post /wp-admin/post-new.php | 1,420 ▼113 | 20.13 ▼3.11 | 578.51 ▼99.89 | 44.97 ▼10.68 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.23 ▼0.03 | 91.97 ▼8.47 | 40.99 ▼4.37 |
Simple Gplus Widget /wp-admin/options-general.php?page=simple-gplus-widget/simple-gplus-widget.php | 864 | 2.32 | 24.22 | 30.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/simple-gplus-widget/simple-gplus-widget.php+165
Non-static method gpw_GplusWidgets::gpw_add_real_fb_tools_options_page() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=simple-gplus-widget/simple-gplus-widget.php
- > Deprecated in wp-content/plugins/simple-gplus-widget/simple-gplus-widget.php+165
Non-static method gpw_GplusWidgets::gpw_add_real_fb_tools_options_page() should not be called statically
- > GET request to /wp-admin/options-general.php?page=simple-gplus-widget/simple-gplus-widget.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method gpw_GplusWidgets::gpw_badge_options() should not be called statically
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× 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/simple-gplus-widget/simple-gplus-widget.php:162
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: simple gplus widget plugin, wordpress gplus widget, gplus widget, google plus, google slider display
simple-gplus-widget/simple-gplus-widget.php 92% from 13 tests
The main PHP script in "Simple Gplus Widget" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
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
Success! There were no dangerous files found in this plugin274 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 39 | 189 |
CSS | 1 | 2 | 10 | 85 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
assets/googlesgw-icon2.png | 1.70KB | 1.07KB | ▼ 37.36% |