Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼9.36ms] Passed 4 tests
An overview of server-side resources used by QuizMeister
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.74 ▼4.10 |
Dashboard /wp-admin | 3.45 ▲0.11 | 47.41 ▼10.58 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 51.37 ▲7.17 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 83.56 ▼24.81 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 35.89 ▲2.04 |
All Quizzes /wp-admin/edit.php?post_type=quiz | 3.40 | 38.56 |
Add New /wp-admin/post-new.php?post_type=quiz | 3.57 | 45.46 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QuizMeister
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲207 | 14.00 ▼0.38 | 14.26 ▲12.51 | 40.57 ▼1.13 |
Dashboard /wp-admin | 2,251 ▲63 | 4.86 ▼0.06 | 107.42 ▼8.15 | 41.97 ▼0.84 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.04 ▲0.04 | 39.32 ▲0.97 | 34.35 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,575 ▲56 | 18.16 ▼5.07 | 600.61 ▼85.16 | 50.72 ▼21.52 |
Media Library /wp-admin/upload.php | 1,433 ▲51 | 4.25 ▲0.07 | 95.82 ▼3.18 | 41.42 ▼1.79 |
All Quizzes /wp-admin/edit.php?post_type=quiz | 1,103 | 2.01 | 30.01 | 28.96 |
Add New /wp-admin/post-new.php?post_type=quiz | 2,250 | 7.63 | 174.28 | 73.75 |
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 detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quizmeister/qm-functions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quizmeister/templates/single-quiz.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quizmeister/qm-ajax.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quizmeister/qm-new-quiz.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quizmeister/qm-functions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quizmeister/admin/settings.php:14
- > 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 93% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== quizmeister ===
)
quizmeister/qm.php 92% from 13 tests
This is the main PHP file of "QuizMeister" version 1.0.1, 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: Name the main plugin file the same as the plugin slug ("quizmeister.php" instead of "qm.php")
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
Success! There were no dangerous files found in this plugin2,959 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 210 | 253 | 1,754 |
JavaScript | 2 | 45 | 33 | 673 |
CSS | 3 | 89 | 16 | 477 |
Markdown | 1 | 32 | 0 | 55 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 34.33 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 1 | 2.44% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.18MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twitter.png | 0.72KB | 0.75KB | 0.00% |
images/arrow-right.png | 0.50KB | 0.46KB | ▼ 7.10% |
templates/screenshot.png | 177.96KB | 60.51KB | ▼ 66.00% |
images/facebook.png | 0.59KB | 0.62KB | 0.00% |
templates/images/fb.png | 1.20KB | 1.03KB | ▼ 14.15% |