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
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/showguests/showguests.php+100
Methods with the same name as their class will not be constructors in a future version of PHP; showguestswidget has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼54.48ms] Passed 4 tests
Analyzing server-side resources used by Showguests
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.86 ▼37.51 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.81 ▼47.55 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.58 ▼46.17 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.29 ▼86.68 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.44 ▼32.26 |
Showguests /wp-admin/options-general.php?page=Showguestsinfo | 2.11 | 5.14 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_showguestswidget |
Browser metrics Passed 4 tests
An overview of browser requirements for Showguests
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.32 ▲0.04 | 1.88 ▲0.05 | 44.37 ▼1.31 |
Dashboard /wp-admin | 2,201 ▲24 | 5.58 ▼0.01 | 88.69 ▼7.99 | 38.05 ▼4.61 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.01 ▼0.02 | 39.74 ▲2.25 | 35.22 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.29 ▼0.12 | 686.77 ▲3.16 | 52.80 ▼4.69 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.21 ▲0.09 | 102.30 ▼10.79 | 44.58 ▼3.27 |
Showguests /wp-admin/options-general.php?page=Showguestsinfo | 818 | 1.97 | 25.05 | 27.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/showguests/showguests.php+100
Methods with the same name as their class will not be constructors in a future version of PHP; showguestswidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_showguestswidget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=Showguestsinfo
- > Deprecated in wp-content/plugins/showguests/showguests.php+100
Methods with the same name as their class will not be constructors in a future version of PHP; showguestswidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=Showguestsinfo
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in showguestswidget 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=Showguestsinfo
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=Showguestsinfo
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=Showguestsinfo
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=Showguestsinfo
- > Notice in wp-content/plugins/showguests/showguests.php+19
Undefined index: showguestcounts
- > GET request to /wp-admin/options-general.php?page=Showguestsinfo
- > Notice in wp-content/plugins/showguests/showguests.php+29
Undefined index: showguestmyname
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× 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/showguests/showguests.php:100
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== showguests ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (As a Widget.), #2 (As a page.)
showguests/showguests.php Passed 13 tests
The main PHP file in "Showguests" ver. 1.02 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
Display guests who visited your website recently.
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 plugin169 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 8 | 131 |
CSS | 1 | 7 | 4 | 38 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 61.63KB | 18.22KB | ▼ 70.43% |
screenshot-2.png | 118.39KB | 31.56KB | ▼ 73.35% |