Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/ravelry-projects-widget/ravelry-projects-widget.php+201
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.86ms] Passed 4 tests
A check of server-side resources used by Ravelry Projects Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 3.90 ▼36.83 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.94 ▼45.12 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.17 ▼39.41 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.18 ▼86.06 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.20 ▼27.82 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_ravelry_projects |
Browser metrics Passed 4 tests
Ravelry Projects Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.27 ▼1.13 | 1.63 ▼0.16 | 41.08 ▼6.39 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.94 | 108.68 ▼2.53 | 38.50 ▼10.30 |
Posts /wp-admin/edit.php | 2,089 ▲18 | 2.04 ▲0.03 | 35.34 ▼2.92 | 32.98 ▼4.38 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.15 ▼0.07 | 622.87 ▲10.65 | 59.24 ▲9.43 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.19 ▼0.02 | 98.91 ▼1.61 | 42.85 ▲1.05 |
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
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/ravelry-projects-widget/ravelry-projects-widget.php+201
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_ravelry_projects
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ravelry-projects-widget/ravelry-projects-widget.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: knitting, ravelry, crochet, widget
ravelry-projects-widget/ravelry-projects-widget.php Passed 13 tests
"Ravelry Projects Widget" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Show your recent Ravelry projects in a widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin219 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 54 | 132 |
PO File | 1 | 16 | 18 | 50 |
CSS | 1 | 0 | 0 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ravelry-icon-16x16.png | 0.80KB | 0.87KB | 0.00% |
ravelry-text-icon.png | 1.29KB | 1.30KB | 0.00% |