Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/game-users-share-buttons/game-users-share-buttons.php+1327
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.26MB] [CPU: ▼137.26ms] Passed 4 tests
Analyzing server-side resources used by Game Users Share Buttons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.09 ▲0.37 | 34.98 ▲15.32 |
Dashboard /wp-admin | 3.31 ▲0.26 | 58.15 ▲11.19 |
Posts /wp-admin/edit.php | 3.42 ▲0.31 | 42.26 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.67 ▲0.24 | 97.62 ▼551.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.25 | 36.15 ▼6.11 |
Game Users Share Buttons /wp-admin/options-general.php?page=game-users-share-buttons | 3.23 | 29.21 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- There were 2 files (0.08KB) illegally modified outside of "wp-content/plugins/game-users-share-buttons/" and "wp-content/uploads/"
- (new file) wp-content/game-users-share-buttons/json/option.json
- (new file) wp-content/game-users-share-buttons/themes/.empty
Filesystem: 49 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_game-users-share-buttons |
game_users_option |
Browser metrics Passed 4 tests
A check of browser resources used by Game Users Share Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.97 ▲0.43 | 9.46 ▼1.00 | 50.59 ▲6.77 |
Dashboard /wp-admin | 2,972 ▲38 | 5.91 ▼0.08 | 143.97 ▼12.48 | 109.44 ▲4.14 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.02 | 62.77 ▼8.03 | 83.68 ▼5.29 |
Add New Post /wp-admin/post-new.php | 3,690 ▲2,190 | 15.13 ▼3.36 | 491.99 ▲93.90 | 111.53 ▼0.87 |
Media Library /wp-admin/upload.php | 1,812 ▲64 | 5.03 ▲0.00 | 151.20 ▼9.24 | 116.52 ▼1.43 |
Game Users Share Buttons /wp-admin/options-general.php?page=game-users-share-buttons | 2,099 | 6.11 | 148.13 | 150.91 |
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
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/game-users-share-buttons/game-users-share-buttons.php+1277
unlink(wp-content/game-users-share-buttons/json): Is a directory
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_game-users-share-buttons
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/game-users-share-buttons/views/option.php
- > /wp-content/plugins/game-users-share-buttons/php/count.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/game-users-share-buttons/modules/widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/game-users-share-buttons/modules/widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/game-users-share-buttons/views/admin-function.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
game-users-share-buttons/game-users-share-buttons.php 92% from 13 tests
The principal PHP file in "Game Users Share Buttons" v. 1.3.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 355 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin18,243 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 9,578 |
JSX | 16 | 2,826 | 1,160 | 7,007 |
PHP | 7 | 627 | 367 | 1,051 |
SVG | 1 | 0 | 0 | 288 |
CSS | 4 | 87 | 46 | 225 |
JavaScript | 7 | 4 | 22 | 94 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 46.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 7.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 37 | 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 | 14 | |
▷ Global constants | 14 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/free1.png | 2.67KB | 2.67KB | 0.00% |
img/free2.png | 3.07KB | 3.07KB | 0.06% |