Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-tincan/wp-tincan.php+647
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.64MB] [CPU: ▼50.20ms] Passed 4 tests
Server-side resources used by WP-Tincan
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼1.12 | 6.98 ▼34.26 |
Dashboard /wp-admin | 2.36 ▼0.94 | 7.86 ▼37.27 |
Posts /wp-admin/edit.php | 2.36 ▼0.99 | 8.11 ▼45.09 |
Add New Post /wp-admin/post-new.php | 2.36 ▼3.52 | 7.89 ▼84.18 |
Media Library /wp-admin/upload.php | 2.36 ▼0.86 | 6.14 ▼26.76 |
Add New /wp-admin/post-new.php?post_type=quiz | 2.36 | 7.77 |
WP-Tincan /wp-admin/admin.php?page=tincanpage | 2.36 | 8.15 |
All Certificates /wp-admin/edit.php?post_type=certificate | 2.37 | 7.65 |
Add New /wp-admin/post-new.php?post_type=certificate | 2.36 | 6.65 |
TinCan Quiz Settings /wp-admin/admin.php?page=tincan-quiz-settings | 2.36 | 7.34 |
Courses /wp-admin/edit-tags.php?taxonomy=tincancourses&post_type=lesson | 2.37 | 6.74 |
TinCan LRS Settings /wp-admin/admin.php?page=tincan-lrs-settings | 2.36 | 13.66 |
Add New /wp-admin/post-new.php?post_type=lesson | 2.36 | 6.95 |
Quizzes /wp-admin/edit-tags.php?taxonomy=quiz_categories&post_type=certificate | 2.37 | 8.66 |
All Lessons /wp-admin/edit.php?post_type=lesson | 2.37 | 6.77 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-Tincan
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,090 ▲344 | 13.89 ▼0.50 | 7.08 ▲4.87 | 43.68 ▲2.24 |
Dashboard /wp-admin | 2,322 ▲131 | 5.08 ▼0.81 | 117.01 ▲1.19 | 89.90 ▲45.58 |
Posts /wp-admin/edit.php | 2,226 ▲137 | 2.12 ▲0.09 | 38.54 ▼3.08 | 37.29 ▼1.04 |
Add New Post /wp-admin/post-new.php | 6,609 ▲5,095 | 20.47 ▲3.01 | 936.51 ▲304.12 | 40.25 ▼12.44 |
Media Library /wp-admin/upload.php | 1,516 ▲125 | 4.38 ▲0.11 | 113.88 ▲6.95 | 88.45 ▲41.59 |
Add New /wp-admin/post-new.php?post_type=quiz | 2,503 | 7.84 | 199.64 | 159.70 |
WP-Tincan /wp-admin/admin.php?page=tincanpage | 952 | 1.87 | 32.63 | 30.30 |
All Certificates /wp-admin/edit.php?post_type=certificate | 1,190 | 2.05 | 33.60 | 29.53 |
Add New /wp-admin/post-new.php?post_type=certificate | 2,365 | 7.78 | 176.16 | 142.11 |
TinCan Quiz Settings /wp-admin/admin.php?page=tincan-quiz-settings | 955 | 1.80 | 27.95 | 27.87 |
Courses /wp-admin/edit-tags.php?taxonomy=tincancourses&post_type=lesson | 1,390 | 2.25 | 29.00 | 29.39 |
TinCan LRS Settings /wp-admin/admin.php?page=tincan-lrs-settings | 935 | 1.87 | 25.14 | 23.35 |
Add New /wp-admin/post-new.php?post_type=lesson | 2,779 | 8.01 | 180.84 | 130.84 |
Quizzes /wp-admin/edit-tags.php?taxonomy=quiz_categories&post_type=certificate | 1,396 | 2.25 | 27.89 | 29.39 |
All Lessons /wp-admin/edit.php?post_type=lesson | 1,240 | 2.06 | 35.75 | 31.41 |
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
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-tincan/wp-tincan.php+647
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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
These server-side errors were triggered
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lesson
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/wp-tincan/wp-tincan.php+647
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lesson
- > Notice in wp-content/plugins/wp-tincan/wp-tincan.php+230
Undefined index: question_box_nonce
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-tincan/template.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-tincan/wp-tincan.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lesson
- > Javascript (severe) in unknown
/wp-content/plugins/wp-tincan/js/quiz.js?ver=6.3.1 17:15 Uncaught ReferenceError: quiz is not defined
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lesson
- > Network (severe)
wp-content/plugins/tincan/icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-tincan ===
) - Contributors: Plugin contributors not specified
wp-tincan/wp-tincan.php 92% from 13 tests
Analyzing the main PHP file in "WP-Tincan" version 1.0
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 312 characters long)
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 detected5,899 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 1,013 | 2,216 | 4,683 |
PHP | 2 | 213 | 87 | 1,011 |
CSS | 1 | 40 | 11 | 172 |
Markdown | 1 | 8 | 0 | 33 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 45 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.19MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 0.57KB | 0.52KB | ▼ 8.81% |
img/incorrect.png | 1.59KB | 1.49KB | ▼ 6.20% |
img/quiz.png | 5.29KB | 3.94KB | ▼ 25.62% |
img/correct.png | 1.65KB | 1.32KB | ▼ 19.89% |
img/rhinoslider-sprite.png | 7.29KB | 3.27KB | ▼ 55.15% |