Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/glitch-profile-widget/glitch-profile.php+178
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.98ms] Passed 4 tests
A check of server-side resources used by Glitch Profile Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.27 ▼34.44 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.83 ▼45.09 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.59 ▼46.24 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.13 ▼98.13 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.58 ▼32.08 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_glitchprofilewidget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Glitch Profile Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▼0.02 | 1.76 ▼0.19 | 44.45 ▼3.36 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.05 | 89.82 ▼5.90 | 38.70 ▼4.00 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.08 | 39.57 ▼1.21 | 35.86 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,545 ▲5 | 23.16 ▲5.06 | 634.37 ▼18.64 | 53.33 ▼21.83 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▼0.06 | 97.94 ▼20.67 | 45.82 ▼0.41 |
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
- > Deprecated in wp-content/plugins/glitch-profile-widget/glitch-profile.php+178
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_glitchprofilewidget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 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/glitch-profile-widget/glitch-profile.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 issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("")
- Screenshots: Add images for these screenshots: #1 (How it might look (this one uses the Cleanr theme)), #2 (What you're able to set (in v1.0))
glitch-profile-widget/glitch-profile.php 85% from 13 tests
The main file in "Glitch Profile Widget" v. 1... serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1...")
- Main file name: The principal plugin file should be the same as the plugin slug ("glitch-profile-widget.php" instead of "glitch-profile.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected177 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 21 | 154 |
JavaScript | 1 | 0 | 0 | 12 |
CSS | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 7.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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 | 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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 32.85KB | 12.49KB | ▼ 61.97% |
sprite.png | 3.79KB | 2.27KB | ▼ 40.07% |
screenshot-2.png | 5.52KB | 3.66KB | ▼ 33.75% |