Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method AklamatorTwitchPrWidget::set_up_options() should not be called statically
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.55ms] Passed 4 tests
An overview of server-side resources used by Aklamator Twitch
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.99 ▲3.89 |
Dashboard /wp-admin | 3.39 ▲0.04 | 48.46 ▼8.10 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.14 ▲1.24 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 78.89 ▼15.66 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.82 ▲0.33 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 15 new options
New WordPress options |
---|
theysaidso_admin_options |
aklamatorTwitchChannelName |
aklamatorTwitchApplicationID |
widget_recent-comments |
aklamatorTwitchSingleWidgetTitle |
aklamatorTwitchWidgets |
db_upgraded |
aklamatorTwitchGameName |
aklamatorTwitchPageWidgetID |
aklamatorTwitchSingleWidgetID |
... |
Browser metrics Passed 4 tests
Aklamator Twitch: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.40 ▼0.20 | 1.77 ▲0.18 | 44.52 ▲4.01 |
Dashboard /wp-admin | 2,213 ▲36 | 5.56 ▼0.08 | 95.84 ▼2.27 | 70.02 ▲25.01 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.96 ▼0.03 | 35.56 ▲1.11 | 32.92 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,693 ▲165 | 22.58 ▼0.55 | 699.91 ▲15.23 | 49.78 ▼0.31 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.21 ▲0.01 | 94.06 ▲0.02 | 63.23 ▲18.87 |
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
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method AklamatorTwitchPrWidget::aklamator_uninstall() should not be called statically
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_wp_widget_aklamatortwitch
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aklamator-twitch-classic/includes/class-aklamatorTwitch-widget-pr.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/aklamator-twitch-classic/views/admin-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/aklamator-twitch-classic/aklamator-twitch.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== aklamator-twitch-classic ===
) - Tags: You are using too many tags: 12 tag instead of maximum 10
aklamator-twitch-classic/aklamator-twitch.php 85% from 13 tests
"Aklamator Twitch" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("aklamator-twitch-classic.php" instead of "aklamator-twitch.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected858 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 157 | 49 | 536 |
JavaScript | 2 | 28 | 5 | 228 |
CSS | 2 | 13 | 3 | 94 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 19 | 86.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.64% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.46MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/aklamator-icon.png | 1.76KB | 0.82KB | ▼ 53.53% |
assets/dataTables/images/sort_desc_disabled.png | 1.09KB | 0.17KB | ▼ 84.55% |
images/teaser-810x262.png | 279.89KB | 88.35KB | ▼ 68.43% |
assets/dataTables/images/sort_desc.png | 1.10KB | 0.17KB | ▼ 84.15% |
images/logo.png | 101.95KB | 36.96KB | ▼ 63.74% |