Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPRecommenderIr\Init::activation() should not be called statically
Server metrics [RAM: ▲0.08MB] [CPU: ▲0.05ms] Passed 4 tests
This is a short check of server-side resources used by Recommender
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.38 ▼6.23 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.49 ▼0.22 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.79 ▲10.52 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.45 ▲2.59 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.51 ▲4.06 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
recom_active_copy |
recom_active_read |
widget_theysaidso_widget |
recom_active_scroll |
recom_active_cart |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Recommender: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲38 | 13.30 ▲0.00 | 1.91 ▼0.44 | 42.48 ▼1.40 |
Dashboard /wp-admin | 2,221 ▲18 | 5.84 ▲0.04 | 105.55 ▼5.82 | 43.94 ▲2.36 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.03 ▲0.01 | 35.13 ▲1.86 | 34.15 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,552 ▲10 | 18.25 ▼5.02 | 647.17 ▼65.18 | 58.96 ▲8.71 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.32 ▲0.12 | 99.42 ▼12.00 | 46.14 ▲0.50 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 11 options
- can_compress_scripts
- widget_recent-posts
- widget_recommender_widget
- recom_active_copy
- widget_theysaidso_widget
- recom_active_scroll
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- recom_active_cart
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/recommender/assets/templates/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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 to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Main settings), #2 (Advanced settings), #3 (Widget)
recommender/index.php 92% from 13 tests
The main file in "Recommender" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recommender.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,960 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 394 | 243 | 1,520 |
PO File | 1 | 60 | 65 | 166 |
JavaScript | 4 | 40 | 8 | 150 |
CSS | 1 | 20 | 6 | 94 |
JSON | 2 | 0 | 0 | 26 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 13 | 16.05% |
▷ Public methods | 77 | 95.06% |
▷ Protected methods | 2 | 2.47% |
▷ Private methods | 2 | 2.47% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
3 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 78.66KB | 32.29KB | ▼ 58.96% |
screenshot-3.png | 22.42KB | 8.26KB | ▼ 63.18% |
screenshot-1.png | 36.67KB | 14.39KB | ▼ 60.75% |