Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/post-relation-widget/post-relation-widget.php+537
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.56ms] Passed 4 tests
Server-side resources used by Post Relation Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.71 ▼33.69 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.86 ▼45.40 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.71 ▼47.03 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.25 ▼92.12 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.63 ▼28.79 |
Post Relation Widget /wp-admin/options-general.php?page=prw-settings-admin | 2.05 | 6.02 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_prw_relations |
wp_prw_posts |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_prw |
Browser metrics Passed 4 tests
Checking browser requirements for Post Relation Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.17 ▼1.46 | 1.75 ▼0.06 | 40.82 ▼5.92 |
Dashboard /wp-admin | 2,210 ▲25 | 4.86 ▼0.02 | 112.34 ▼15.52 | 39.25 ▼15.70 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.04 | 40.09 ▲4.15 | 36.02 ▲6.82 |
Add New Post /wp-admin/post-new.php | 1,536 ▼5 | 23.33 ▲5.13 | 674.56 ▲53.60 | 67.65 ▼2.91 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.25 ▲0.09 | 96.89 ▼0.27 | 45.58 ▲0.90 |
Post Relation Widget /wp-admin/options-general.php?page=prw-settings-admin | 801 | 2.07 | 28.40 | 30.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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/post-relation-widget/post-relation-widget.php+537
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_prw_posts
- wp_prw_relations
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_prw
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=prw-settings-admin
- > Deprecated in wp-content/plugins/post-relation-widget/post-relation-widget.php+537
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=prw-settings-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=prw-settings-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post-relation-widget/post-relation-widget.php:13
- > 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 to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== post-relation-widget ===
)
post-relation-widget/post-relation-widget.php Passed 13 tests
The main PHP script in "Post Relation Widget" version 0.14.01 is automatically included on every request by WordPress
71 characters long description:
Manage relations between posts depending on their category in a widget.
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
There were no executable files found in this plugin595 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 51 | 442 |
JavaScript | 1 | 8 | 2 | 88 |
CSS | 1 | 4 | 2 | 65 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 59.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 23 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/remove.png | 0.22KB | 0.17KB | ▼ 22.27% |
images/add.png | 0.26KB | 0.27KB | 0.00% |