Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/easy-quiz/EzOptions.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; EzBaseOption has a deprecated constructor
Server metrics [RAM: ▼1.72MB] [CPU: ▼59.15ms] Passed 4 tests
An overview of server-side resources used by Easy Quiz
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 5.27 ▼40.35 |
Dashboard /wp-admin | 2.30 ▼1.04 | 7.02 ▼59.76 |
Posts /wp-admin/edit.php | 2.30 ▼1.05 | 6.12 ▼41.82 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.58 | 6.05 ▼94.65 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 7.50 ▼32.98 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Quiz
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.41 ▼0.21 | 1.79 ▼0.17 | 38.85 ▼3.75 |
Dashboard /wp-admin | 2,222 ▲22 | 5.85 ▼0.03 | 106.39 ▼1.21 | 40.44 ▼3.08 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.03 ▼0.01 | 38.69 ▲2.78 | 36.74 ▼9.17 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.25 ▲0.16 | 615.66 ▼23.05 | 53.80 ▼4.67 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.15 ▼0.09 | 113.49 ▲13.96 | 49.15 ▲4.56 |
Easy Quiz Lite /wp-admin/easy-quiz.php | 26 | 0.44 | 0.13 | 14.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/easy-quiz/EzOptions.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; EzBaseOption has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-quiz/myPlugins.php:300
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easy-quiz/EzOptions.php:544
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-quiz/ezDenyLite.php on line 22
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-quiz/ezDenyLite.php on line 22
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/easy-quiz/ezDenyLite.php on line 22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/easy-quiz.php
- > Network (severe)
wp-admin/easy-quiz.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Sample quiz.), #2 (Color customization.)
easy-quiz/easy-quiz.php 92% from 13 tests
The primary PHP file in "Easy Quiz" version 5.00 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,114 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 106 | 205 | 2,018 |
PHP | 5 | 250 | 79 | 1,967 |
CSS | 1 | 0 | 7 | 129 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 5 | 4.95% |
▷ Public methods | 101 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 126.46KB | 34.41KB | ▼ 72.79% |
img/ezpaypal.png | 9.22KB | 3.44KB | ▼ 62.72% |
img/ezsupport.png | 3.13KB | 2.01KB | ▼ 35.75% |
screenshot-1.png | 21.01KB | 7.82KB | ▼ 62.80% |
ezsupport.png | 3.13KB | 2.01KB | ▼ 35.75% |