Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.69MB] [CPU: ▼186.32ms] Passed 4 tests
An overview of server-side resources used by WP Design Awards
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.94 ▼0.78 | 9.97 ▼13.33 |
Dashboard /wp-admin | 1.96 ▼1.09 | 8.25 ▼35.75 |
Posts /wp-admin/edit.php | 1.96 ▼1.15 | 7.76 ▼37.15 |
Add New Post /wp-admin/post-new.php | 1.96 ▼3.47 | 8.05 ▼645.81 |
Media Library /wp-admin/upload.php | 1.96 ▼1.04 | 7.26 ▼26.57 |
Participants /wp-admin/edit-tags.php?taxonomy=Participants&post_type=design_awards | 1.96 | 9.00 |
Add new nomination /wp-admin/post-new.php?post_type=design_awards | 1.96 | 7.17 |
All Nominations /wp-admin/edit.php?post_type=design_awards | 1.96 | 6.90 |
Design Awards /wp-admin/options-general.php?page=wp-design-awards/files/settings_page.php | 1.96 | 7.99 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 45 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_design_awards |
New WordPress options |
---|
design_awards_database |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Design Awards
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,857 ▲261 | 16.79 ▲1.19 | 44.19 ▲34.68 | 52.40 ▼12.97 |
Dashboard /wp-admin | 3,005 ▲71 | 5.97 ▼0.19 | 142.56 ▼7.79 | 143.06 ▲18.92 |
Posts /wp-admin/edit.php | 2,764 ▲25 | 2.61 ▼0.08 | 64.66 ▼2.41 | 96.66 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,704 ▲100 | 18.99 ▲0.15 | 371.49 ▼22.82 | 125.29 ▲10.33 |
Media Library /wp-admin/upload.php | 1,790 ▼17 | 5.05 ▲0.02 | 138.73 ▼25.59 | 152.94 ▲23.09 |
Participants /wp-admin/edit-tags.php?taxonomy=Participants&post_type=design_awards | 1,793 | 2.50 | 59.54 | 86.06 |
Add new nomination /wp-admin/post-new.php?post_type=design_awards | 3,785 | 9.32 | 241.51 | 171.94 |
All Nominations /wp-admin/edit.php?post_type=design_awards | 1,494 | 2.56 | 59.57 | 76.78 |
Design Awards /wp-admin/options-general.php?page=wp-design-awards/files/settings_page.php | 1,204 | 2.36 | 53.03 | 92.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5663
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the kt_main_plugin_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie tables were found after uninstall: 1 table
- wp_design_awards
- The uninstall procedure has failed, leaving 1 option in the database
- design_awards_database
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-design-awards/files/settings_page.php
- > User notice in wp-includes/functions.php+5663
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the kt_main_plugin_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-design-awards/files/settings_page.php
- > User notice in wp-includes/functions.php+5663
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the kt_rating_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-design-awards/files/settings_page.php
- > User notice in wp-includes/functions.php+5663
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the colorpicker_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-design-awards/files/settings_page.php
- > User notice in wp-includes/functions.php+5663
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the aw_options_page_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/edit.php?post_type=design_awards
- > Notice in wp-content/plugins/wp-design-awards/files/functions.php+716
Trying to get property 'post_type' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-design-awards/plugin.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: gallery, design contest
wp-design-awards/plugin.php 85% from 13 tests
This is the main PHP file of "WP Design Awards" version 1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-design-awards.php" instead of "plugin.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,794 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 838 | 548 | 897 |
CSS | 3 | 82 | 20 | 584 |
JavaScript | 4 | 173 | 18 | 313 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
15 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/more.png | 2.67KB | 2.00KB | ▼ 25.15% |
css/awards_icon.png | 3.21KB | 1.68KB | ▼ 47.66% |
images/desaw_menu_icon.png | 1.23KB | 0.60KB | ▼ 51.23% |
images/default_image_preview.png | 5.90KB | 3.19KB | ▼ 45.99% |
css/link.png | 2.73KB | 2.01KB | ▼ 26.33% |