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
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/google-plus-comments-by-forum-gt/google-plus-comments.php+41
Methods with the same name as their class will not be constructors in a future version of PHP; AndreaGooglePlusComments has a deprecated constructor
Server metrics [RAM: ▼1.22MB] [CPU: ▼42.08ms] Passed 4 tests
Server-side resources used by WordPress Google Plus Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.75 ▼0.71 | 12.80 ▼23.76 |
Dashboard /wp-admin | 2.79 ▼0.51 | 19.71 ▼31.54 |
Posts /wp-admin/edit.php | 2.79 ▼0.56 | 19.97 ▼23.15 |
Add New Post /wp-admin/post-new.php | 2.79 ▼3.09 | 19.41 ▼89.87 |
Media Library /wp-admin/upload.php | 2.79 ▼0.43 | 17.26 ▼16.48 |
Google Plus Comments /wp-admin/options-general.php?page=google-plus-comments-options | 2.79 | 17.67 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Google Plus Comments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼1.39 | 1.77 ▲0.06 | 37.50 ▼5.19 |
Dashboard /wp-admin | 2,207 ▲19 | 5.82 ▲0.94 | 137.81 ▲21.56 | 50.87 ▲10.91 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.05 ▲0.03 | 43.83 ▲8.53 | 36.18 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,415 ▼99 | 18.01 ▲0.25 | 596.12 ▼58.77 | 50.52 ▼8.16 |
Media Library /wp-admin/upload.php | 1,392 ▲13 | 4.24 ▲0.02 | 116.56 ▲13.56 | 47.14 ▲2.81 |
Google Plus Comments /wp-admin/options-general.php?page=google-plus-comments-options | 798 | 2.03 | 24.18 | 26.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+308
Non-static method AndreaGooglePlusComments::Enable() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=google-plus-comments-options
- > Deprecated in wp-includes/class-wp-hook.php+308
Non-static method AndreaGooglePlusComments::Enable() should not be called statically
- > GET request to /wp-admin/options-general.php?page=google-plus-comments-options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method AndreaGooglePlusComments::GooglePlusCommentsMenu() should not be called statically
- > GET request to /wp-admin/options-general.php?page=google-plus-comments-options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method AndreaGooglePlusComments::GooglePlusCommentsOptions() should not be called statically
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/google-plus-comments-by-forum-gt/google-plus-comments.php:30
- > 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 96% from 29 tests
readme.txt Passed 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
3 plugin tags: google plus one button, social share, google
google-plus-comments-by-forum-gt/google-plus-comments.php 92% from 13 tests
The main PHP script in "WordPress Google Plus Comments" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-plus-comments-by-forum-gt.php" instead of "google-plus-comments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin144 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 56 | 64 | 144 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ 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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin