Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼1.36ms] Passed 4 tests
A check of server-side resources used by Recommend Marketing, Integration Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 46.93 ▲3.39 |
Dashboard /wp-admin | 3.52 ▲0.21 | 53.42 ▼3.48 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 57.90 ▲9.08 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 98.62 ▼9.87 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 41.28 ▲4.53 |
Recommend /wp-admin/options-general.php?page=rcmnd-referal | 3.41 | 36.17 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Recommend Marketing, Integration Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 13.52 ▼0.83 | 8.26 ▲6.63 | 44.54 ▲5.20 |
Dashboard /wp-admin | 2,203 ▲26 | 5.57 ▼0.09 | 88.15 ▼4.07 | 41.71 ▼10.05 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.05 | 37.81 ▲3.57 | 34.98 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.81 ▲0.76 | 654.43 ▲54.47 | 52.17 ▲1.00 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.16 ▼0.06 | 97.10 ▲0.09 | 45.48 ▲2.75 |
Recommend /wp-admin/options-general.php?page=rcmnd-referal | 884 | 2.17 | 27.22 | 28.04 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/recommend-referral-integration/public/partials/rcmnd-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/recommend-referral-integration/admin/partials/rcmnd-admin-display.php:19
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: integration, webshop, recommend, referral, marketing
recommend-referral-integration/rcmnd.php 77% from 13 tests
The primary PHP file in "Recommend Marketing, Integration Plugin" version 1.3.11 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Git Repository: Please remove the Git repository from this plugin
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("recommend-referral-integration.php" instead of "rcmnd.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,122 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 359 | 696 | 1,054 |
CSS | 2 | 11 | 20 | 29 |
YAML | 1 | 0 | 0 | 20 |
SVG | 3 | 0 | 0 | 13 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 2 | 3.17% |
▷ Public methods | 45 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 28.57% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.45MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rcmnd-logo-fav_old.png | 0.70KB | 0.70KB | 0.14% |
images/rcmnd-logo-full.png | 4.40KB | 2.64KB | ▼ 40.09% |
.wordpress-org/screenshot-3.png | 46.24KB | 13.81KB | ▼ 70.14% |
images/rcmnd-logo-full_old.png | 6.42KB | 3.02KB | ▼ 53.00% |
.wordpress-org/screenshot-6.png | 44.37KB | 11.73KB | ▼ 73.57% |