Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/recently-registered-widget/recently-registered-widget.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Recently_Registered has a deprecated constructor
Server metrics [RAM: ▼1.64MB] [CPU: ▼181.44ms] Passed 4 tests
Server-side resources used by Recently registered widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.98 ▼0.85 | 9.64 ▼20.97 |
Dashboard /wp-admin | 2.01 ▼1.05 | 9.30 ▼26.00 |
Posts /wp-admin/edit.php | 2.01 ▼1.10 | 9.08 ▼33.70 |
Add New Post /wp-admin/post-new.php | 2.01 ▼3.43 | 9.85 ▼643.30 |
Media Library /wp-admin/upload.php | 2.01 ▼0.99 | 9.67 ▼22.74 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_recently-registered-widget |
Browser metrics Passed 4 tests
Recently registered widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.88 ▲0.65 | 9.85 ▼1.12 | 47.26 ▼1.54 |
Dashboard /wp-admin | 2,967 ▲34 | 5.96 ▼0.21 | 142.57 ▼29.53 | 106.32 ▼1.88 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 61.85 ▼4.55 | 86.24 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.77 ▲0.19 | 410.89 ▲8.48 | 109.31 ▼7.80 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▼0.02 | 164.47 ▲5.24 | 111.30 ▼2.15 |
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
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in WP_Widget_Recently_Registered is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 1 option
- widget_recently-registered-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recently-registered-widget/recently-registered-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: A description for screenshot #2 is missing in recently-registered-widget/assets to your readme.txt
recently-registered-widget/recently-registered-widget.php Passed 13 tests
The main file in "Recently registered widget" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
33 characters long description:
List of recently registered users
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin256 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 8 | 172 |
PO File | 1 | 34 | 43 | 84 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 11.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.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 | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 21.02KB | 10.68KB | ▼ 49.21% |
screenshot-2.png | 22.73KB | 13.08KB | ▼ 42.46% |