Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wordpress_smart_related_post::activation() should not be called statically
Server metrics [RAM: ▼0.30MB] [CPU: ▼15.53ms] Passed 4 tests
Server-side resources used by Smart Related Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.00 | 40.34 ▼3.73 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.23 ▼3.67 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.79 ▼1.37 |
Add New Post /wp-admin/post-new.php | 4.63 ▼1.26 | 44.58 ▼53.34 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.62 ▲0.64 |
Wordpress Smart Related Post /wp-admin/options-general.php?page=wordpress_smart_related_post | 3.20 | 30.32 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
recovery_mode_email_last_sent |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Smart Related Posts: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,703 ▼43 | 14.46 ▲0.09 | 1.33 ▼0.63 | 31.17 ▼14.47 |
Dashboard /wp-admin | 2,212 ▲24 | 4.84 ▼0.06 | 120.33 ▲18.44 | 52.61 ▲9.11 |
Posts /wp-admin/edit.php | 2,077 ▼15 | 2.17 ▲0.15 | 40.67 ▼3.18 | 38.02 ▲0.92 |
Add New Post /wp-admin/post-new.php | 47 ▼1,495 | 0.44 ▼17.77 | 0.06 ▼628.47 | 14.60 ▼41.44 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.19 ▲0.01 | 98.13 ▼3.17 | 61.98 ▲15.80 |
Wordpress Smart Related Post /wp-admin/options-general.php?page=wordpress_smart_related_post | 776 | 2.03 | 26.08 | 28.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wordpress_smart_related_post::deactivation() should not be called statically
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wordpress_smart_related_post
- > 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=wordpress_smart_related_post
- > 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 | 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/smart-related-posts/smart-related-posts.php:27
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Plugin Name: Please specify the plugin name on the first line (
=== smart-related-posts ===
)
smart-related-posts/smart-related-posts.php 92% from 13 tests
This is the main PHP file of "Smart Related Posts" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: The plugin description must be longer than 10 characters (currently 0 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
There were no executable files found in this plugin140 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 47 | 48 | 112 |
CSS | 1 | 1 | 0 | 28 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin