Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php+9
Trying to get property 'ID' of non-object
Server metrics [RAM: ▼1.84MB] [CPU: ▼54.07ms] Passed 4 tests
Server-side resources used by wordpress related Posts with thumbnails
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.03 ▼37.14 |
Dashboard /wp-admin | 2.16 ▼1.14 | 6.59 ▼41.03 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 5.79 ▼43.96 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 6.63 ▼94.13 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 7.46 ▼25.09 |
Related Posts with Thumbnails (lite) /wp-admin/options-general.php?page=aio_options_cp | 2.17 | 5.85 |
Server storage [IO: ▲4.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 160 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
wordpress related Posts with thumbnails: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.21 ▼0.16 | 1.88 ▲0.33 | 42.59 ▲5.19 |
Dashboard /wp-admin | 2,190 ▲16 | 5.51 ▼0.06 | 84.41 ▼0.50 | 37.90 ▼7.56 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▼0.01 | 33.92 ▼5.64 | 33.71 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.29 ▼4.85 | 704.21 ▲71.10 | 69.95 ▲16.39 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.25 ▲0.07 | 95.84 ▲1.27 | 43.78 ▲4.76 |
Related Posts with Thumbnails (lite) /wp-admin/options-general.php?page=aio_options_cp | 2,169 | 2.52 | 56.63 | 114.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php+9
Trying to get property 'ID' of non-object
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aio_options_cp
- > Notice in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php+9
Trying to get property 'ID' of non-object
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aio_options_cp
- > Notice in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php+22
Undefined offset: 0
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aio_options_cp
- > Notice in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php+21
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aio_options_cp
- > Notice in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php+22
Trying to get property 'count' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aio_options_cp
- > Notice in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/related.php+261
Undefined variable: default_thumb
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aio_options_cp
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=aio_options_cp
- > Notice in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/related.php+211
Undefined index: aio_thumbw
- > GET request to /wp-admin/options-general.php?page=aio_options_cp
- > Notice in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/related.php+211
Undefined index: aio_thumbh
- > GET request to /wp-admin/options-general.php?page=aio_options_cp
- > Notice in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/admin-core.php+5
Undefined index: action
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 take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/related-posts-list-grid-and-slider-all-in-one/the_globals.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (How to install the plugin), #2 (activating the plugin), #3 (Final result (related posts as a grid)), #4 (Final result (related posts as a list))
related-posts-list-grid-and-slider-all-in-one/related.php 85% from 13 tests
The main PHP file in "wordpress related Posts with thumbnails" ver. 3.0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("related-posts-list-grid-and-slider-all-in-one.php" instead of "related.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 202 characters long)
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
Success! There were no dangerous files found in this plugin41,946 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 21 | 0 | 0 | 28,352 |
CSS | 5 | 37 | 45 | 10,504 |
JavaScript | 15 | 302 | 154 | 1,521 |
PHP | 6 | 513 | 79 | 1,486 |
HTML | 1 | 5 | 0 | 83 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
65 PNG files occupy 1.03MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flat-ui/images/login/icon.png | 7.33KB | 3.18KB | ▼ 56.59% |
flat-ui/images/video/pause.png | 1.06KB | 0.25KB | ▼ 76.24% |
images/thumbnailwh.png | 1.29KB | 1.30KB | 0.00% |
images/rlist2.png | 23.13KB | 10.73KB | ▼ 53.61% |
flat-ui/images/video/play.png | 1.15KB | 0.51KB | ▼ 55.57% |