Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.70ms] Passed 4 tests
Analyzing server-side resources used by Softmixt Relations
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.49 ▼4.00 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.61 ▼7.09 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.05 ▲2.11 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 87.20 ▼15.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.10 ▼0.37 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_sft_defaultwidget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Softmixt Relations
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.62 ▼1.06 | 1.76 ▼0.07 | 41.92 ▼1.44 |
Dashboard /wp-admin | 2,206 ▲18 | 5.76 ▼0.16 | 108.73 ▼11.71 | 43.28 ▼5.55 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.08 | 38.79 ▲0.47 | 36.39 ▲0.93 |
Add New Post /wp-admin/post-new.php | 6,322 ▲4,801 | 26.19 ▲2.82 | 912.10 ▲289.93 | 70.73 ▲19.23 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.25 ▲0.04 | 98.76 ▲0.41 | 43.02 ▼2.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_sft_defaultwidget
- theysaidso_admin_options
- widget_theysaidso_widget
- 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 smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/softmixt-relations/admin/views/softmixt-relations-mb-view.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/softmixt-relations/widgets/default/SFT_DefaultWidget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #10, #11, #12, #7, #8, #9 in softmixt-relations/assets to your readme.txt
softmixt-relations/softmixt-relations.php Passed 13 tests
The entry point to "Softmixt Relations" version 2.0.0 is a PHP file that has certain tags in its header comment area
37 characters long description:
Simple way for adding related posts .
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
No dangerous file extensions were detected1,129 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 121 | 186 | 624 |
JavaScript | 4 | 59 | 81 | 413 |
CSS | 1 | 17 | 7 | 92 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 30.33 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 7.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 4 | 50.00% |
▷ Anonymous functions | 4 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/tinymce/plugins/sftrelations/sftrelations.png | 0.32KB | 0.33KB | 0.00% |