Benchmarks
Plugin footprint 58% 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 did not install without errors
- > User notice in wp-includes/functions.php+5905
Function icit_core was called incorrectly. icit_core should be included at the top of your theme or plug-in file and should load before the init action. Please see Debugging in WordPress for more information. (This message was added in version icit_core:1.0.)
Server metrics [RAM: ▲0.57MB] [CPU: ▲1.07ms] Passed 4 tests
A check of server-side resources used by Quizzlestick
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.60 | 44.46 ▲3.50 |
Dashboard /wp-admin | 3.90 ▲0.60 | 53.59 ▲5.82 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 55.33 ▲5.19 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 87.65 ▼4.66 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 40.58 ▲0.25 |
Quizzes /wp-admin/edit.php?post_type=quiz | 3.87 | 41.15 |
Add New /wp-admin/post-new.php?post_type=quiz | 4.15 | 54.76 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 36 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 Quizzlestick
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲190 | 13.63 ▼1.02 | 8.32 ▲6.55 | 36.61 ▼9.83 |
Dashboard /wp-admin | 2,240 ▲49 | 4.85 ▼1.05 | 112.34 ▲13.53 | 40.70 ▼2.61 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 2.16 ▲0.16 | 38.56 ▲1.13 | 35.78 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,553 ▲15 | 18.49 ▼4.80 | 654.15 ▼11.39 | 51.10 ▼9.32 |
Media Library /wp-admin/upload.php | 1,425 ▲43 | 4.28 ▲0.09 | 96.34 ▼2.97 | 43.01 ▲0.88 |
Quizzes /wp-admin/edit.php?post_type=quiz | 1,099 | 1.98 | 31.10 | 29.00 |
Add New /wp-admin/post-new.php?post_type=quiz | 3,670 | 12.17 | 261.42 | 121.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quizzlestick/core/icit-notices.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quizzlestick/core/icit-helpers.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quizzlestick/inc/wp-preview-meta.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/quizzlestick/quizzlestick.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quizzlestick/core/icit-helpers.php:10
- > PHP Fatal error
Uncaught Error: Class 'icit_fields' not found in wp-content/plugins/quizzlestick/core/icit-options.php:11
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: plugins, quiz
quizzlestick/quizzlestick.php Passed 13 tests
The primary PHP file in "Quizzlestick" version 1.0.1 is used by WordPress to initiate all plugin functionality
74 characters long description:
Quizzlestick wrapper plugin to make creating quizzes within WordPress easy
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,761 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 1,321 | 1,624 | 3,789 |
JavaScript | 10 | 351 | 344 | 1,167 |
CSS | 4 | 111 | 2 | 494 |
PO File | 1 | 48 | 49 | 153 |
HTML | 1 | 14 | 0 | 146 |
JSON | 1 | 0 | 0 | 10 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 34.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 175 | |
▷ Static methods | 43 | 24.57% |
▷ Public methods | 171 | 97.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.29% |
Functions | 37 | |
▷ Named functions | 31 | 83.78% |
▷ Anonymous functions | 6 | 16.22% |
Constants | 25 | |
▷ Global constants | 4 | 16.00% |
▷ Class constants | 21 | 84.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin