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
- > Warning in wp-content/plugins/gg-twitter/gg-twitter.php+93
Declaration of GgTwitterWidget::save_settings() should be compatible with WP_Widget::save_settings($settings)
Server metrics [RAM: ▼1.74MB] [CPU: ▼190.71ms] Passed 4 tests
This is a short check of server-side resources used by GG Twitter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.89 ▼0.95 | 5.18 ▼28.22 |
Dashboard /wp-admin | 1.90 ▼1.15 | 5.88 ▼42.46 |
Posts /wp-admin/edit.php | 1.91 ▼1.20 | 5.27 ▼41.06 |
Add New Post /wp-admin/post-new.php | 1.91 ▼3.53 | 5.97 ▼640.42 |
Media Library /wp-admin/upload.php | 1.91 ▼1.10 | 5.50 ▼38.91 |
GG Twitter /wp-admin/options-general.php?page=ggtwitter | 1.91 | 5.53 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ggtwitter_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GG Twitter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.87 ▲0.45 | 13.92 ▲2.65 | 48.83 ▲3.46 |
Dashboard /wp-admin | 2,972 ▲38 | 5.92 ▼0.08 | 146.39 ▼20.93 | 108.88 ▼2.63 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.73 ▲0.01 | 64.85 ▼6.35 | 87.35 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,679 ▼1,955 | 18.85 ▲3.85 | 406.35 ▼112.65 | 108.35 ▼6.76 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.03 ▲0.00 | 154.36 ▼15.13 | 111.00 ▼30.86 |
GG Twitter /wp-admin/options-general.php?page=ggtwitter | 1,165 | 2.09 | 57.74 | 72.18 |
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
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/gg-twitter/gg-twitter.php+93
Declaration of GgTwitterWidget::save_settings() should be compatible with WP_Widget::save_settings($settings)
- Zombie WordPress options were found after uninstall: 1 option
- ggtwitter_settings
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ggtwitter
- > Warning in wp-content/plugins/gg-twitter/gg-twitter.php+93
Declaration of GgTwitterWidget::save_settings() should be compatible with WP_Widget::save_settings($settings)
- > GET request to /wp-admin/options-general.php?page=ggtwitter
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in GgTwitterWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=ggtwitter
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method GgTwitterWidget::add_settings_page() should not be called statically
- > GET request to /wp-admin/options-general.php?page=ggtwitter
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method GgTwitterWidget::save_settings() should not be called statically
- > GET request to /wp-admin/options-general.php?page=ggtwitter
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method GgTwitterWidget::settings_view() should not be called statically
- > GET request to /wp-admin/options-general.php?page=ggtwitter
- > Deprecated in wp-content/plugins/gg-twitter/gg-twitter.php+120
Non-static method GgTwitterWidget::validate_settings() should not be called statically
SRP 0% 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
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/gg-twitter/includes/Twitter/connect.php
- > /wp-content/plugins/gg-twitter/includes/Twitter/clearsessions.php
- > /wp-content/plugins/gg-twitter/includes/Twitter/index.php
- > /wp-content/plugins/gg-twitter/includes/Twitter/test.php
- > /wp-content/plugins/gg-twitter/includes/Twitter/redirect.php
- > /wp-content/plugins/gg-twitter/includes/Twitter/callback.php
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/gg-twitter/includes/Twitter/twitteroauth/twitteroauth.php on line 118
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/gg-twitter/includes/Twitter/twitteroauth/twitteroauth.php on line 82
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gg-twitter/includes/Twitter/test.php on line 20
- > PHP Notice
Undefined property: stdClass::$remaining_hits in wp-content/plugins/gg-twitter/includes/Twitter/test.php on line 24
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/gg-twitter/includes/Twitter/redirect.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gg-twitter/gg-twitter.php:10
- > PHP Notice
Undefined index: access_token in wp-content/plugins/gg-twitter/includes/Twitter/index.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gg-twitter/includes/Twitter/test.php on line 20
- > PHP Notice
Undefined index: oauth_verifier in wp-content/plugins/gg-twitter/includes/Twitter/callback.php on line 23
- > PHP Notice
Undefined index: access_token in wp-content/plugins/gg-twitter/includes/Twitter/test.php on line 17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Widget configuration screen) image missing
gg-twitter/gg-twitter.php Passed 13 tests
This is the main PHP file of "GG Twitter" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
29 characters long description:
Grinning Gecko Twitter Widget
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 plugin1,335 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 345 | 515 | 1,335 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 10.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 10 | 11.36% |
▷ Public methods | 77 | 87.50% |
▷ Protected methods | 2 | 2.27% |
▷ Private methods | 9 | 10.23% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/Twitter/images/lighter.png | 2.43KB | 1.77KB | ▼ 27.11% |
screenshot-1.png | 34.83KB | 10.20KB | ▼ 70.73% |
includes/Twitter/images/darker.png | 2.31KB | 1.70KB | ▼ 26.41% |