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
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/google-plus-badge-like-fb-like-box/google_plus_like_fb_like_box.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; Google_Plus_Like_FB_Like has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼194.81ms] Passed 4 tests
Analyzing server-side resources used by Google+ Follow Box
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼1.03 | 5.12 ▼33.07 |
Dashboard /wp-admin | 1.82 ▼1.23 | 6.40 ▼50.93 |
Posts /wp-admin/edit.php | 1.82 ▼1.28 | 5.70 ▼40.38 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.61 | 6.57 ▼654.87 |
Media Library /wp-admin/upload.php | 1.82 ▼1.18 | 6.27 ▼32.61 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_google_plus_follow_box |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google+ Follow Box
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲106 | 16.19 ▲0.55 | 12.61 ▲2.59 | 50.89 ▲3.88 |
Dashboard /wp-admin | 2,967 ▲33 | 5.96 ▼0.05 | 148.61 ▼19.01 | 109.82 ▼5.03 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.01 | 72.20 ▼14.97 | 97.83 ▲4.87 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.78 ▲2.39 | 428.15 ▲4.10 | 116.49 ▲1.05 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.00 ▼0.03 | 166.01 ▼8.81 | 119.58 ▼7.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/google-plus-badge-like-fb-like-box/google_plus_like_fb_like_box.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; Google_Plus_Like_FB_Like has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 1 option
- widget_google_plus_follow_box
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/google-plus-badge-like-fb-like-box/google_plus_like_fb_like_box.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: google followers pic, google plus badge, google follow box, google plus follow box, google plus follow button...
google-plus-badge-like-fb-like-box/google_plus_like_fb_like_box.php 92% from 13 tests
Analyzing the main PHP file in "Google+ Follow Box" version 0.1.8
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("google-plus-badge-like-fb-like-box.php" instead of "google_plus_like_fb_like_box.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
No dangerous file extensions were detected136 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 21 | 136 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 0 | |
▷ Named functions | 0 | 0.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
No PNG files were detected