Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.72MB] [CPU: ▼179.93ms] Passed 4 tests
An overview of server-side resources used by Oxford Debate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 47.48 ▲25.62 |
Dashboard /wp-admin | 2.93 ▼0.13 | 31.94 ▼11.93 |
Posts /wp-admin/edit.php | 2.93 ▼0.18 | 29.25 ▼14.35 |
Add New Post /wp-admin/post-new.php | 2.93 ▼2.50 | 30.82 ▼691.32 |
Media Library /wp-admin/upload.php | 2.93 ▼0.08 | 36.37 ▼2.11 |
OxD Settings /wp-admin/options-general.php?page=oxd-admin-page | 2.93 | 33.19 |
Proposal Categories /wp-admin/edit-tags.php?taxonomy=posture_category&post_type=posture | 2.93 | 39.83 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=debate | 2.93 | 33.25 |
Debate Categories /wp-admin/edit-tags.php?taxonomy=debate_category&post_type=debate | 2.93 | 33.11 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=posture | 2.93 | 32.76 |
Server storage [IO: ▲1.76MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for Oxford Debate
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,978 ▲382 | 16.66 ▲1.12 | 14.01 ▲5.97 | 49.35 ▼0.30 |
Dashboard /wp-admin | 3,091 ▲197 | 6.84 ▲1.01 | 137.59 ▼24.35 | 144.38 ▲35.87 |
Posts /wp-admin/edit.php | 2,883 ▲144 | 3.03 ▲0.33 | 69.56 ▲1.49 | 110.38 ▲14.65 |
Add New Post /wp-admin/post-new.php | 45 ▼3,685 | 0.90 ▼14.27 | 0.04 ▼413.29 | 30.62 ▼77.70 |
Media Library /wp-admin/upload.php | 1,948 ▲141 | 5.48 ▲0.49 | 125.70 ▼21.97 | 143.36 ▲26.09 |
OxD Settings /wp-admin/options-general.php?page=oxd-admin-page | 3,166 | 11.22 | 302.97 | 147.84 |
Proposal Categories /wp-admin/edit-tags.php?taxonomy=posture_category&post_type=posture | 1,893 | 2.82 | 63.94 | 98.35 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=debate | 1,977 | 2.81 | 60.50 | 91.21 |
Debate Categories /wp-admin/edit-tags.php?taxonomy=debate_category&post_type=debate | 1,890 | 2.82 | 59.58 | 106.04 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=posture | 1,977 | 2.82 | 58.93 | 103.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin did not uninstall successfully, leaving 1 option in the database
- recovery_mode_email_last_sent
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
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=posture
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=oxd-admin-page
- > Warning in wp-content/plugins/oxford-debate/oxd.php+524
Use of undefined constant yes - assumed 'yes' (this will throw an Error in a future version of PHP)
SRP 50% 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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/oxford-debate/templates/comments-debate.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/oxford-debate/templates/single-debate.php:3
- > 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 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #2 (Example of social media sharing feature.) image missing
oxford-debate/oxd.php 85% from 13 tests
Analyzing the main PHP file in "Oxford Debate" version 2.1.3
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("oxford-debate.php" instead of "oxd.php")
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 detected10,744 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 527 | 318 | 4,843 |
CSS | 6 | 83 | 38 | 2,986 |
PHP | 7 | 526 | 137 | 2,030 |
HTML | 3 | 50 | 1 | 402 |
PO File | 1 | 128 | 157 | 301 |
JSON | 3 | 0 | 0 | 147 |
Markdown | 1 | 22 | 0 | 35 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 43.50 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
30 PNG files occupy 1.05MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon_in.png | 0.48KB | 0.23KB | ▼ 51.22% |
assets/datetimepicker-master/screen/4.png | 12.29KB | 5.50KB | ▼ 55.26% |
img/icon_email.png | 0.67KB | 0.30KB | ▼ 55.67% |
img/icon_x.png | 0.52KB | 0.25KB | ▼ 51.98% |
assets/screenshot-1.png | 935.67KB | 386.36KB | ▼ 58.71% |