Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.53ms] Passed 4 tests
This is a short check of server-side resources used by WP eCards
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 41.40 ▲0.81 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.27 ▼13.83 |
Posts /wp-admin/edit.php | 3.49 ▲0.12 | 48.13 ▲2.74 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.01 ▼14.43 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.74 ▲1.32 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
wp_ecards_api_key |
wp_ecards_credit |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP eCards
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲180 | 13.99 ▼0.31 | 5.37 ▲3.54 | 43.86 ▼4.35 |
Dashboard /wp-admin | 2,221 ▲30 | 5.85 ▲0.96 | 96.54 ▼8.90 | 41.03 ▲4.84 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.04 ▲0.06 | 41.13 ▲0.20 | 36.48 ▲5.79 |
Add New Post /wp-admin/post-new.php | 1,693 ▲157 | 24.87 ▲1.73 | 603.98 ▼34.03 | 66.64 ▲9.81 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.21 ▲0.02 | 93.95 ▼2.66 | 41.39 ▼1.86 |
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
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- wp_ecards_api_key
- widget_theysaidso_widget
- wp_ecards_credit
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-ecards-invites/public/partials/wp-ecards-public-display.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/wp-ecards-invites/admin/partials/wp-ecards-authenticate.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/wp-ecards-invites/admin/partials/wp-ecards-list.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-ecards-invites/admin/partials/wp-ecards-thanks-button.php:1
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #3, #4, #5, #6 in wp-ecards-invites/assets to your readme.txt
- Tags: You are using too many tags: 14 tag instead of maximum 10
wp-ecards-invites/wp-ecards.php 85% from 13 tests
"WP eCards" version 1.3.904's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-ecards-invites.php" instead of "wp-ecards.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin552 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 178 | 603 | 452 |
JavaScript | 2 | 30 | 57 | 100 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 25 | 75.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 24.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin