Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/scholarship-browser/widget.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; SbWidget has a deprecated constructor
Server metrics [RAM: ▼1.72MB] [CPU: ▼50.95ms] Passed 4 tests
A check of server-side resources used by Scholarship Browser
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 10.77 ▼30.99 |
Dashboard /wp-admin | 2.30 ▼1.05 | 10.98 ▼52.59 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 11.69 ▼38.25 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 10.35 ▼81.95 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 11.39 ▼23.06 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_sbwidget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Scholarship Browser: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.60 ▼1.05 | 7.07 ▲5.29 | 42.81 ▲1.75 |
Dashboard /wp-admin | 2,206 ▲18 | 5.82 ▲0.00 | 102.23 ▼6.74 | 42.07 ▼0.71 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 1.99 ▼0.02 | 36.63 ▲0.30 | 35.47 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.09 ▲4.83 | 660.55 ▲41.57 | 64.20 ▲14.90 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.01 | 95.52 ▼11.93 | 41.96 ▼3.27 |
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
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SbWidget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_sbwidget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/scholarship-browser/scholarship-browser.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/scholarship-browser/widget.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Sidebar with the search filters), #2 (Sidebar with different style), #3 (Widget administration - selecting categories and options)
scholarship-browser/scholarship-browser.php Passed 13 tests
The main PHP script in "Scholarship Browser" version 1.3 is automatically included on every request by WordPress
94 characters long description:
Providing a Widget to show and interactively browse scholarships for German exchange students.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,022 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 70 | 16 | 662 |
PHP | 3 | 46 | 97 | 217 |
JavaScript | 1 | 27 | 3 | 103 |
PO File | 1 | 15 | 18 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 9.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 6 | |
▷ Named functions | 6 | 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
7 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 6.02KB | 3.94KB | ▼ 34.54% |
images/check-micro.png | 0.23KB | 0.22KB | ▼ 4.26% |
images/flags-high-quality.png | 77.17KB | 25.50KB | ▼ 66.96% |
screenshot-3.png | 14.75KB | 8.20KB | ▼ 44.42% |
screenshot-1.png | 17.86KB | 7.74KB | ▼ 56.69% |