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/diigo-bookmarks-widget/diigo_widget.php+14
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.64ms] Passed 4 tests
Server-side resources used by Diigo Bookmarks Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.41 ▼40.76 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.31 ▼45.74 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.18 ▼47.75 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.68 ▼88.30 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.84 ▼32.91 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_diigo_widget |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Diigo Bookmarks Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲189 | 13.61 ▼0.75 | 8.18 ▲6.26 | 45.12 ▼0.29 |
Dashboard /wp-admin | 2,203 ▲18 | 5.87 ▼0.01 | 110.66 ▲7.21 | 42.77 ▲1.88 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▼0.00 | 38.52 ▼4.71 | 36.59 ▲3.05 |
Add New Post /wp-admin/post-new.php | 1,514 ▼23 | 17.64 ▼5.66 | 664.37 ▼27.03 | 61.33 ▲2.76 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.18 ▲0.02 | 106.50 ▲6.25 | 44.43 ▼3.22 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/diigo-bookmarks-widget/diigo_widget.php+14
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_diigo_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/diigo-bookmarks-widget/views/widget.php
- > /wp-content/plugins/diigo-bookmarks-widget/diigo_widget.php
- > /wp-content/plugins/diigo-bookmarks-widget/lib/diigo.class.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: before_title in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 19
- > PHP Warning
get_class() called without object from outside a class in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 7
- > PHP Notice
Undefined variable: title in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 18
- > PHP Warning
get_class() called without object from outside a class in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 2
- > PHP Notice
Undefined variable: bookmarks in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 21
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 21
- > PHP Warning
get_class() called without object from outside a class in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 2
- > PHP Notice
Undefined variable: after_widget in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 32
- > PHP Warning
get_class() called without object from outside a class in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 20
- > PHP Notice
Undefined variable: after_title in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
diigo-bookmarks-widget/diigo_widget.php 85% from 13 tests
The primary PHP file in "Diigo Bookmarks Widget" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("diigo-bookmarks-widget.php" instead of "diigo_widget.php")
- Description: The description should be shorter than 140 characters (currently 504 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected383 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 51 | 28 | 383 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin