Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.55ms] Passed 4 tests
An overview of server-side resources used by EmbedQuiz
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 44.64 ▼1.08 |
Dashboard /wp-admin | 3.38 ▲0.07 | 56.20 ▼0.35 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.26 ▼2.55 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 88.53 ▼6.20 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.76 ▲1.61 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_embedquiz_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
EmbedQuiz: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.42 ▲0.04 | 1.79 ▼0.03 | 43.00 ▼2.79 |
Dashboard /wp-admin | 2,227 ▲42 | 4.88 ▼0.02 | 113.01 ▼27.65 | 43.96 ▼7.19 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.04 ▲0.04 | 36.75 ▼4.22 | 36.74 ▲3.56 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,836 | 27.86 ▲4.52 | 984.69 ▲285.88 | 39.95 ▼18.35 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.07 ▼0.16 | 102.50 ▼8.80 | 46.96 ▲3.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_embedquiz_widget
- widget_recent-posts
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'EMBEDQUIZ__PLUGIN_DIR/views/EmbedQuizAdminPage.php' (include_path='.:/usr/share/php') in wp-content/plugins/embedquiz/classes/EmbedQuizWordpressAdmin.php on line 2
- > PHP Warning
Use of undefined constant EMBEDQUIZ__PLUGIN_DIR - assumed 'EMBEDQUIZ__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/embedquiz/classes/EmbedQuizWidget.php on line 3
- > PHP Warning
Use of undefined constant EMBEDQUIZ__PLUGIN_DIR - assumed 'EMBEDQUIZ__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/embedquiz/views/EmbedQuizAdminPage.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'EMBEDQUIZ__PLUGIN_DIR/classes/EmbedQuizAPI.php' (include_path='.:/usr/share/php') in wp-content/plugins/embedquiz/classes/EmbedQuizWidget.php on line 3
- > PHP Warning
require_once(EMBEDQUIZ__PLUGIN_DIR/classes/EmbedQuizAPI.php): failed to open stream: No such file or directory in wp-content/plugins/embedquiz/classes/EmbedQuizWidget.php on line 3
- > PHP Warning
require_once(EMBEDQUIZ__PLUGIN_DIR/classes/EmbedQuizAPI.php): failed to open stream: No such file or directory in wp-content/plugins/embedquiz/views/EmbedQuizAdminPage.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'EMBEDQUIZ__PLUGIN_DIR/classes/EmbedQuizAPI.php' (include_path='.:/usr/share/php') in wp-content/plugins/embedquiz/views/EmbedQuizAdminPage.php on line 2
- > PHP Warning
require_once(EMBEDQUIZ__PLUGIN_DIR/views/EmbedQuizAdminPage.php): failed to open stream: No such file or directory in wp-content/plugins/embedquiz/classes/EmbedQuizWordpressAdmin.php on line 2
- > PHP Warning
Use of undefined constant EMBEDQUIZ__PLUGIN_DIR - assumed 'EMBEDQUIZ__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/embedquiz/classes/EmbedQuizWordpressAdmin.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
embedquiz/embedquiz.php Passed 13 tests
"EmbedQuiz" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
135 characters long description:
This plugin connects WordPress to EmbedQuiz.com. Use Gutenberg Blocks, Shortcodes, and Legacy Widgets to embed quizzes on your website!
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
No dangerous file extensions were detected17,016 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 16,291 |
PHP | 7 | 42 | 33 | 363 |
CSS | 3 | 2 | 5 | 174 |
JavaScript | 4 | 22 | 68 | 173 |
Sass | 2 | 0 | 0 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 16 | |
▷ Static methods | 12 | 75.00% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 2 | |
▷ Global constants | 2 | 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
PNG images were not found in this plugin