Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.00ms] Passed 4 tests
A check of server-side resources used by Relations lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 45.20 ▲4.08 |
Dashboard /wp-admin | 3.47 ▲0.16 | 45.61 ▼0.59 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 47.98 ▲2.65 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 84.29 ▼6.15 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.14 ▲5.47 |
Templates /wp-admin/edit.php?post_type=relations_template | 3.48 | 42.16 |
Settings /wp-admin/admin.php?page=relations | 3.38 | 32.30 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
relations_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Relations lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲192 | 13.65 ▼0.65 | 6.06 ▲3.74 | 46.82 ▲3.76 |
Dashboard /wp-admin | 2,244 ▲56 | 5.17 ▲0.30 | 102.36 ▲1.86 | 40.79 ▼2.86 |
Posts /wp-admin/edit.php | 2,127 ▲41 | 2.31 ▲0.31 | 36.92 ▼0.28 | 31.24 ▼3.25 |
Add New Post /wp-admin/post-new.php | 6,286 ▲4,772 | 26.29 ▲8.87 | 945.63 ▲245.57 | 52.11 ▼10.86 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.54 ▲0.37 | 96.36 ▼4.66 | 42.37 ▼2.60 |
Templates /wp-admin/edit.php?post_type=relations_template | 1,732 | 2.48 | 33.90 | 29.79 |
Settings /wp-admin/admin.php?page=relations | 894 | 2.06 | 33.51 | 26.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- relations_options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/relations-lite/templates/advanced/wrapper-end.php
- > /wp-content/plugins/relations-lite/templates/simple/wrapper-end.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/relations-lite/templates/advanced/content-related-post.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/relations-lite/templates/simple/wrapper-start.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/relations-lite/templates/advanced/wrapper-start.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/relations-lite/includes/view/menu-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/relations-lite/templates/simple/content-related-post.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/relations-lite/relations-advanced-related-posts.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/relations-lite/includes/view/metabox-main.php:4
- > 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 90% 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
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Plugin settings), #2 (Related posts templates), #3 (Edit a related post template)
relations-lite/relations-advanced-related-posts.php 85% from 13 tests
The principal PHP file in "Relations lite" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("relations-lite.php" instead of "relations-advanced-related-posts.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,191 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 161 | 313 | 806 |
CSS | 3 | 4 | 0 | 177 |
PO File | 1 | 63 | 66 | 145 |
JavaScript | 3 | 17 | 0 | 63 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 15 | 32.61% |
▷ Public methods | 43 | 93.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.52% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
3 PNG files occupy 0.22MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 75.74KB | 29.46KB | ▼ 61.11% |
screenshot-1.png | 57.68KB | 22.69KB | ▼ 60.66% |
screenshot-3.png | 95.84KB | 37.20KB | ▼ 61.19% |