Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.58MB] [CPU: ▼185.26ms] Passed 4 tests
An overview of server-side resources used by Learning Registry Display Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼0.79 | 9.66 ▼25.89 |
Dashboard /wp-admin | 2.07 ▼0.99 | 11.94 ▼35.43 |
Posts /wp-admin/edit.php | 2.07 ▼1.04 | 10.90 ▼35.83 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.36 | 9.81 ▼643.90 |
Media Library /wp-admin/upload.php | 2.07 ▼0.93 | 9.56 ▼23.98 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_learning_registry_search |
Browser metrics Passed 4 tests
Checking browser requirements for Learning Registry Display Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,784 ▲188 | 16.33 ▲0.80 | 14.55 ▲3.96 | 47.68 ▲3.27 |
Dashboard /wp-admin | 2,973 ▲42 | 5.93 ▼0.02 | 150.50 ▼8.35 | 107.41 ▼3.16 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.00 | 73.14 ▲1.66 | 84.54 ▲1.94 |
Add New Post /wp-admin/post-new.php | 1,683 ▲183 | 18.87 ▲0.27 | 406.17 ▲32.49 | 108.75 ▲2.06 |
Media Library /wp-admin/upload.php | 1,822 ▲12 | 5.02 ▼0.02 | 164.21 ▲4.81 | 108.86 ▼10.59 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/learning-registry-widget/lreg_class.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; learning_registry_search has a deprecated constructor
- Zombie WordPress options were found after uninstall: 1 option
- widget_learning_registry_search
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/learning-registry-widget/lreg_ajax.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_RSS' not found in wp-content/plugins/learning-registry-widget/lreg_class.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/learning-registry-widget/lreg_ajax.php:6
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== learning-registry-widget ===
) - Requires at least: Version format is invalid
- Screenshots: Please add images for these screenshots: #1 (The widget on the "Appearance | Widgets" page), #2 (Setting up the widget)
learning-registry-widget/lreg.php 92% from 13 tests
Analyzing the main PHP file in "Learning Registry Display Widget" version 0.4
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("learning-registry-widget.php" instead of "lreg.php")
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
Everything looks great! No dangerous files found in this plugin133 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 86 | 17 | 133 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 10.36KB | 4.36KB | ▼ 57.94% |
screenshot-1.png | 17.17KB | 8.38KB | ▼ 51.20% |