Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼0.80ms] Passed 4 tests
A check of server-side resources used by Competition Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 45.33 ▼4.46 |
Dashboard /wp-admin | 3.90 ▲0.56 | 60.88 ▲1.50 |
Posts /wp-admin/edit.php | 3.95 ▲0.60 | 59.23 ▲2.93 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 111.21 ▲2.65 |
Media Library /wp-admin/upload.php | 3.76 ▲0.54 | 36.97 ▼2.89 |
Select Winner /wp-admin/admin.php?page=select_winner | 3.73 | 35.46 |
Winners /wp-admin/admin.php?page=winners | 3.73 | 38.64 |
Add New /wp-admin/admin.php?page=add_new | 3.74 | 41.50 |
Entries /wp-admin/admin.php?page=entries | 3.75 | 61.11 |
Install Plugins /wp-admin/themes.php?page=comp-tgmpa-install-plugins | 3.83 | 33.84 |
Competitions /wp-admin/admin.php?page=competitions | 3.74 | 38.12 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_competition_entries_meta |
wp_competition_entries |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Competition Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲127 | 13.36 ▼1.23 | 2.03 ▲0.21 | 48.28 ▲5.23 |
Dashboard /wp-admin | 2,276 ▲88 | 5.93 ▲0.76 | 128.28 ▲6.30 | 51.00 ▲7.58 |
Posts /wp-admin/edit.php | 2,173 ▲87 | 2.26 ▲0.26 | 46.28 ▲6.23 | 42.61 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,575 ▲42 | 23.31 ▼0.01 | 638.55 ▼89.91 | 56.28 ▼9.22 |
Media Library /wp-admin/upload.php | 1,472 ▲84 | 4.39 ▲0.27 | 105.22 ▼13.43 | 45.23 ▼9.13 |
Select Winner /wp-admin/admin.php?page=select_winner | 970 | 2.39 | 28.78 | 38.27 |
Winners /wp-admin/admin.php?page=winners | 969 | 2.23 | 29.23 | 30.95 |
Add New /wp-admin/admin.php?page=add_new | 931 | 2.21 | 29.51 | 33.40 |
Entries /wp-admin/admin.php?page=entries | 1,034 | 2.24 | 46.17 | 36.36 |
Install Plugins /wp-admin/themes.php?page=comp-tgmpa-install-plugins | 1,022 | 2.22 | 35.21 | 35.25 |
Competitions /wp-admin/admin.php?page=competitions | 960 | 2.22 | 28.01 | 31.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_competition_entries_meta
- wp_competition_entries
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=winners
- > Notice in wp-content/plugins/competition-form/admin-pages/competition_winners.php+52
Undefined variable: competition_entries_table
- > GET request to /wp-admin/admin.php?page=winners
- > Notice in wp-content/plugins/competition-form/admin-pages/competition_winners.php+52
Trying to get property 'competition_id' of non-object
- > GET request to /wp-admin/admin.php?page=winners
- > Notice in wp-content/plugins/competition-form/admin-pages/competition_winners.php+52
Trying to get property 'current_page' of non-object
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
Almost there! Just fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/competition-form/required_plugin/class-tgm-plugin-activation.php:1911
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/competition-form/class/table_classes.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'competition_form_plugin' not found in wp-content/plugins/competition-form/admin-pages/competition_select_winner.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/competition-form/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/competition-form/required_plugin/class-tgm-plugin-activation.php:1911
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/competition-form/class/table_classes.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/competition-form/class/table_classes.php on line 5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=select_winner
- > Network (severe)
wp-content/plugins/competition-form/assets/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: competition, competition form, competition entry form
competition-form/competition-form.php 92% from 13 tests
Analyzing the main PHP file in "Competition Form" version 2.0
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,749 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 952 | 1,592 | 2,748 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 30.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 5 | 4.00% |
▷ Public methods | 104 | 83.20% |
▷ Protected methods | 20 | 16.00% |
▷ Private methods | 1 | 0.80% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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