Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.06MB] [CPU: ▼5.74ms] Passed 4 tests
This is a short check of server-side resources used by Recotrust
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▼0.53 | 19.46 ▼21.13 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.15 ▼3.90 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.02 ▲0.61 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.57 ▲1.45 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.05 ▲3.20 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_ac_reco_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Recotrust
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,456 ▼279 | 13.61 ▼0.55 | 0.50 ▼1.34 | 17.73 ▼26.22 |
Dashboard /wp-admin | 2,209 ▲24 | 4.83 ▼1.06 | 111.45 ▲8.32 | 41.32 ▲4.39 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.05 | 40.68 ▲6.85 | 35.25 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,542 ▼1 | 18.24 ▼0.01 | 616.09 ▼41.92 | 62.00 ▼6.69 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.23 ▲0.02 | 97.51 ▼4.97 | 42.34 ▼1.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_ac_reco_widget
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% 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)
Good news, no errors were detected
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/recotrust-integration/ac-reco-plugin.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recotrust-integration/includes/class-ac-reco-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: recommendations, wordpress, reviews, ratings, woocommerce...
recotrust-integration/ac-reco-plugin.php 92% from 13 tests
The entry point to "Recotrust" version 1.0.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("recotrust-integration.php" instead of "ac-reco-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected473 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 69 | 171 | 326 |
PO File | 1 | 28 | 31 | 78 |
SVG | 2 | 0 | 1 | 36 |
JSON | 1 | 0 | 0 | 28 |
CSS | 1 | 0 | 0 | 4 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview 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.19 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 2 | 50.00% |
Methods | 23 | |
▷ Static methods | 8 | 34.78% |
▷ Public methods | 20 | 86.96% |
▷ Protected methods | 1 | 4.35% |
▷ Private methods | 2 | 8.70% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin