Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼11.06ms] Passed 4 tests
Analyzing server-side resources used by Contests & Giveaways - WordPress Contest Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 42.25 ▼0.19 |
Dashboard /wp-admin | 3.51 ▲0.17 | 46.09 ▼16.13 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 46.25 ▼1.74 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 83.58 ▼26.17 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 38.92 ▲5.19 |
Entries /wp-admin/admin.php?page=contest-cat-entries | 3.37 | 33.49 |
All Contests /wp-admin/edit.php?post_type=contest | 3.47 | 37.20 |
Add New /wp-admin/post-new.php?post_type=contest | 3.53 | 48.04 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_fca_cc_activity_tbl |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contests & Giveaways - WordPress Contest Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲87 | 13.17 ▼1.18 | 2.10 ▲0.19 | 44.53 ▲1.18 |
Dashboard /wp-admin | 2,233 ▲45 | 5.87 ▼0.05 | 101.78 ▼5.83 | 77.72 ▲34.41 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.01 ▼0.00 | 37.05 ▼3.33 | 31.03 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,693 ▲160 | 22.53 ▼0.54 | 746.28 ▲110.69 | 61.31 ▲2.96 |
Media Library /wp-admin/upload.php | 1,418 ▲36 | 4.25 ▲0.02 | 115.62 ▲11.12 | 51.15 ▲7.27 |
Entries /wp-admin/admin.php?page=contest-cat-entries | 831 | 2.04 | 24.54 | 19.98 |
All Contests /wp-admin/edit.php?post_type=contest | 1,082 | 1.94 | 31.82 | 32.22 |
Add New /wp-admin/post-new.php?post_type=contest | 2,672 | 7.89 | 169.03 | 132.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_fca_cc_activity_tbl
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=contest-cat-entries
- > Notice in wp-content/plugins/giveaways-contests/includes/entries/entries.php+38
Undefined index: id
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
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/giveaways-contests/languages/index.php
- > /wp-content/plugins/giveaways-contests/contest-cat.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giveaways-contests/includes/entries/entries.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giveaways-contests/includes/editor/editor.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/giveaways-contests/includes/contest/contest.php:102
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giveaways-contests/includes/api.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giveaways-contests/includes/upgrade.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giveaways-contests/includes/editor/sidebar.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giveaways-contests/includes/db.php:201
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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: Add images for these screenshots: #1 (The contest landing page), #2 (The contest signup page), #3 (The Contest Cat settings screen)
giveaways-contests/contest-cat.php 85% from 13 tests
"Contests & Giveaways - WordPress Contest Plugin" version 1.0.2'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: Name the main plugin file the same as the plugin slug ("giveaways-contests.php" instead of "contest-cat.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected1,534 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 329 | 84 | 934 |
JavaScript | 10 | 88 | 37 | 332 |
CSS | 12 | 42 | 5 | 266 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.31MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 0.73KB | 0.60KB | ▼ 17.38% |
screenshot-1.png | 70.48KB | 37.83KB | ▼ 46.33% |
assets/contestcat_icon256_256_360.png | 62.18KB | 16.95KB | ▼ 72.75% |
assets/fatcatapps-logo-text.png | 16.24KB | 4.88KB | ▼ 69.97% |
screenshot-3.png | 133.82KB | 66.59KB | ▼ 50.24% |