Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.39MB] [CPU: ▲1.86ms] Passed 4 tests
A check of server-side resources used by WPtrove
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.44 | 45.48 ▲2.68 |
Dashboard /wp-admin | 3.70 ▲0.40 | 47.91 ▲0.60 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 51.49 ▼1.38 |
Add New Post /wp-admin/post-new.php | 7.41 ▲1.53 | 104.51 ▲5.52 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 38.82 ▲7.91 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WPtrove
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲224 | 15.20 ▲0.53 | 25.65 ▲23.11 | 41.23 ▼11.29 |
Dashboard /wp-admin | 2,218 ▲33 | 5.87 ▼0.16 | 111.54 ▲2.95 | 37.12 ▼6.44 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.07 ▲0.06 | 40.01 ▼3.24 | 36.17 ▼2.15 |
Add New Post /wp-admin/post-new.php | 6,448 ▲4,918 | 23.88 ▲1.05 | 877.45 ▲219.48 | 46.21 ▼21.44 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.33 ▲0.14 | 115.12 ▼8.23 | 50.11 ▼0.28 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wptrove/admin/partials/wptrove-admin-display.php
- > /wp-content/plugins/wptrove/public/partials/wptrove-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wptrove/admin/partials/settings/testimonials.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wptrove/admin/partials/wptrove.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== wptrove ===
)
wptrove/wptrove.php Passed 13 tests
"WPtrove" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
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
Good job! No executable or dangerous file extensions detected6,485 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 849 | 974 | 3,276 |
PHP | 32 | 696 | 1,132 | 1,866 |
Sass | 9 | 95 | 0 | 1,117 |
JSON | 3 | 8 | 0 | 223 |
CSS | 4 | 1 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 15 | 16.85% |
▷ Public methods | 81 | 91.01% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.99% |
Functions | 11 | |
▷ Named functions | 4 | 36.36% |
▷ Anonymous functions | 7 | 63.64% |
Constants | 3 | |
▷ Global constants | 3 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/src/owl/owl-video-play.png | 4.86KB | 2.74KB | ▼ 43.61% |
admin/images/logo.png | 2.28KB | 0.93KB | ▼ 59.41% |