Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/okay-toolkit/includes/widgets/twitter/lib/twitter-api-core.php+62
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.86MB] [CPU: ▼50.32ms] Passed 4 tests
An overview of server-side resources used by Okay Toolkit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 6.68 ▼33.53 |
Dashboard /wp-admin | 2.15 ▼1.15 | 8.22 ▼41.36 |
Posts /wp-admin/edit.php | 2.15 ▼1.20 | 7.47 ▼41.76 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.73 | 7.69 ▼84.64 |
Media Library /wp-admin/upload.php | 2.15 ▼1.07 | 7.78 ▼26.54 |
Okay Toolkit /wp-admin/options-general.php?page=okay-toolkit/okay-toolkit.php | 2.15 | 7.57 |
Twitter API /wp-admin/options-general.php?page=twitter-api-admin | 2.15 | 9.11 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_latest_tweets_widget |
can_compress_scripts |
db_upgraded |
widget_ok-icons-widget |
widget_ok-flickr-widget |
widget_ok-dribbble |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Okay Toolkit
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.51 ▼0.92 | 1.73 ▼0.31 | 38.20 ▼13.82 |
Dashboard /wp-admin | 2,252 ▲64 | 5.95 ▲0.09 | 106.84 ▼8.33 | 39.78 ▼3.04 |
Posts /wp-admin/edit.php | 2,141 ▲55 | 2.38 ▲0.36 | 43.11 ▲7.07 | 33.80 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 17.81 ▼5.28 | 618.58 ▼53.94 | 55.96 ▲0.56 |
Media Library /wp-admin/upload.php | 1,434 ▲49 | 4.36 ▲0.16 | 100.33 ▼0.25 | 41.69 ▼1.18 |
Okay Toolkit /wp-admin/options-general.php?page=okay-toolkit/okay-toolkit.php | 1,048 | 2.05 | 41.69 | 40.43 |
Twitter API /wp-admin/options-general.php?page=twitter-api-admin | 954 | 2.28 | 31.56 | 29.23 |
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 validation failed for this plugin
- > Deprecated in wp-content/plugins/okay-toolkit/includes/widgets/twitter/lib/twitter-api-core.php+62
Array and string offset access syntax with curly braces is deprecated
- This plugin does not fully uninstall, leaving 10 options in the database
- db_upgraded
- widget_ok-flickr-widget
- widget_theysaidso_widget
- widget_ok-dribbble
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_ok-icons-widget
- widget_latest_tweets_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-api-admin
- > Deprecated in wp-content/plugins/okay-toolkit/includes/widgets/twitter/lib/twitter-api-core.php+80
Array and string offset access syntax with curly braces is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-api-admin
- > Deprecated in wp-content/plugins/okay-toolkit/includes/widgets/dribbble/dribbble.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; okay_dribbble_widget has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-api-admin
- > Deprecated in wp-content/plugins/okay-toolkit/includes/widgets/flickr/flickr.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; okay_flickr_widget has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-api-admin
- > Deprecated in wp-content/plugins/okay-toolkit/includes/widgets/icons/icons.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; okay_icons_widget has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-api-admin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in okay_dribbble_widget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-api-admin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in okay_flickr_widget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-api-admin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in okay_icons_widget is deprecated since version 4.3.0! Use __construct() instead.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=okay-toolkit/okay-toolkit.php
- > Notice in wp-content/plugins/okay-toolkit/okay-toolkit.php+170
Trying to access array offset on value of type bool
SRP 50% 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
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/okay-toolkit/okay-toolkit.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/okay-toolkit/includes/lib/metabox/init.php:37
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/okay-toolkit/includes/widgets/twitter/latest-tweets.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/okay-toolkit/includes/gallery/gallery.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/okay-toolkit/includes/widgets/twitter/lib/twitter-api.php:137
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/okay-toolkit/includes/lib/metabox/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/okay-toolkit/includes/widgets/dribbble/dribbble.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/okay-toolkit/includes/widgets/icons/icons.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/okay-toolkit/includes/widgets/twitter/lib/twitter-api-admin.php:213
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/okay-toolkit/includes/widgets/flickr/flickr.php:7
- > 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 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 your attention:
- Screenshots: These screenshots require images: #1 (The Okay Toolkit widget will appear in your list of available widgets.), #2 (A view of the available settings for the Toolkit.), #3 (Widgets that will appear in your Widgets area once activated.), #4 (Retina social icons widget active in a footer.)
okay-toolkit/okay-toolkit.php Passed 13 tests
Analyzing the main PHP file in "Okay Toolkit" version 2.3
60 characters long description:
Various social widgets and elements for your WordPress site.
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
Everything looks great! No dangerous files found in this plugin4,162 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 535 | 500 | 2,234 |
CSS | 6 | 90 | 70 | 1,007 |
PO File | 3 | 239 | 242 | 600 |
JavaScript | 4 | 31 | 69 | 170 |
Markdown | 2 | 30 | 0 | 113 |
SVG | 1 | 0 | 0 | 24 |
Bourne Shell | 1 | 5 | 4 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 6.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 93.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 5 | 10.20% |
▷ Public methods | 45 | 91.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.16% |
Functions | 61 | |
▷ Named functions | 61 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/lib/metabox/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/lib/metabox/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/lib/metabox/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/lib/metabox/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
screenshot-3.png | 30.16KB | 11.14KB | ▼ 63.07% |