Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Compile error in wp-content/plugins/wpcues-basic-quiz/common/classes/wpcue_basic_badge.php+120
'continue' not in the 'loop' or 'switch' context
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.35ms] Passed 4 tests
Server-side resources used by WpCues Basic Quiz
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.54 ▼2.51 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.54 ▼2.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.02 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.72 ▼19.33 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.14 ▼1.10 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 221 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WpCues Basic Quiz
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.28 ▼1.39 | 2.15 ▲0.26 | 48.42 ▲6.27 |
Dashboard /wp-admin | 2,206 ▲15 | 4.87 ▼0.12 | 107.91 ▲6.40 | 39.52 ▼2.67 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▲0.02 | 39.12 ▼0.34 | 34.19 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,528 ▼8 | 23.37 ▲0.04 | 629.73 ▲42.12 | 52.59 ▲6.06 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.17 ▼0.02 | 95.02 ▼2.19 | 44.11 ▲1.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 79× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WpCueBasicQuestion' not found in wp-content/plugins/wpcues-basic-quiz/common/classes/wpcue_basic_singlecor.php:4
- > PHP Fatal error
Uncaught Error: Class 'WpCueBasicQuestion' not found in wp-content/plugins/wpcues-basic-quiz/common/classes/wpcue_basic_sort.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpcues-basic-quiz/admin/templates/edit-certificate-form.php:47
- > PHP Fatal error
Uncaught Error: Class 'Stripe_Object' not found in wp-content/plugins/wpcues-basic-quiz/common/lib/stripe/Stripe/List.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpcues-basic-quiz/admin/templates/progresscreen.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wpcues-basic-quiz/admin/templates/addnewsection.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpcues-basic-quiz/admin/templates/edit-badge-form.php:34
- > PHP Fatal error
Uncaught Error: Class 'WpCueQuiz_Base' not found in wp-content/plugins/wpcues-basic-quiz/admin/classes/wpcue_quiz_action.php:7
- > PHP Fatal error
Uncaught Error: Class 'WpCueQuiz_Base' not found in wp-content/plugins/wpcues-basic-quiz/common/classes/wpcue_basic_quiz.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wpcues-basic-quiz/admin/templates/quiz_submit_box.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (List of your quizzes with shortcodes for embedding in posts or pages), #2 (The form for creating and editing a quiz), #3 (The form to add / edit question), #4 (The form to add new grade)
- Tags: You are using too many tags: 15 tag instead of maximum 10
wpcues-basic-quiz/index.php 92% from 13 tests
This is the main PHP file of "WpCues Basic Quiz" version 1.6.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpcues-basic-quiz.php" instead of "index.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wpcues-basic-quiz/common/lib/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 70 | 3,308 | 3,375 | 16,959 |
PHP | 86 | 504 | 997 | 10,891 |
CSS | 9 | 231 | 271 | 5,387 |
Markdown | 7 | 793 | 0 | 2,166 |
JSON | 11 | 3 | 0 | 334 |
HTML | 2 | 7 | 7 | 50 |
make | 1 | 4 | 2 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 23.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 6 | 9.38% |
▷ Concrete classes | 58 | 90.62% |
▷ Final classes | 0 | 0.00% |
Methods | 501 | |
▷ Static methods | 84 | 16.77% |
▷ Public methods | 406 | 81.04% |
▷ Protected methods | 64 | 12.77% |
▷ Private methods | 31 | 6.19% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 19 | |
▷ Global constants | 7 | 36.84% |
▷ Class constants | 12 | 63.16% |
▷ Public constants | 12 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.72MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/css/images/ui-icons_454545_256x240.png | 6.84KB | 4.23KB | ▼ 38.18% |
screenshot-4.png | 73.76KB | 34.25KB | ▼ 53.57% |
common/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.34KB | 0.21KB | ▼ 38.24% |
common/css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.40KB | 0.17KB | ▼ 55.80% |
common/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.33KB | 0.18KB | ▼ 43.58% |