Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.57ms] Passed 4 tests
Analyzing server-side resources used by Riddle Quiz Maker - easily add quizzes with unlimited lead generation to your site
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.74 ▼1.61 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.99 ▼0.78 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.39 ▲4.09 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.01 ▲2.35 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.03 ▲2.34 |
Connect account /wp-admin/admin.php?page=riddle-admin-menu | 3.41 | 40.60 |
Help /wp-admin/admin.php?page=riddle-help | 3.39 | 39.45 |
Server storage [IO: ▲2.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 148 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
riddle_accessToken |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Riddle Quiz Maker - easily add quizzes with unlimited lead generation to your site
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.77 ▲0.38 | 2.25 ▲0.02 | 43.08 ▲0.06 |
Dashboard /wp-admin | 2,235 ▲47 | 4.92 ▼0.99 | 101.85 ▼6.29 | 69.04 ▲22.56 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.04 ▼0.02 | 39.83 ▼1.20 | 33.61 ▼7.13 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.22 ▲0.18 | 735.60 ▲31.10 | 52.66 ▲0.84 |
Media Library /wp-admin/upload.php | 1,402 ▲17 | 4.19 ▼0.02 | 103.05 ▼0.48 | 90.26 ▲43.93 |
Connect account /wp-admin/admin.php?page=riddle-admin-menu | 1,014 | 3.35 | 40.33 | 88.95 |
Help /wp-admin/admin.php?page=riddle-help | 1,189 | 3.32 | 45.54 | 74.34 |
Uninstaller [IO: ▲2.23MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following itemsThis plugin did not uninstall successfully, leaving 8 options in the database
- This plugin did not uninstall without warnings or errors
- > Error in wp-content/plugins/riddle-playful-content-on-the-go/riddle-plugin.php+45
Uncaught Error: Call to a member function isAuthorized() on null in wp-content/plugins/riddle-playful-content-on-the-go/riddle-plugin.php:45
Stack trace:
#0 wp-includes/class-wp-hook.php(310): deactivatePlugin()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(816): do_action() - Uninstaller has failed for this plugin, leaving 148 files (2.23MB) in the plugin directory
- (new file) lib/api-client/Service/ApiService.php
- (new file) lib/api-client/Service/AccessToken.php
- (new file) lib/api-client/Autoloader.php
- (new file) lib/api-client/Exception/ApiException.php
- (new file) lib/api-client/HTTPConnector.php
- (new file) lib/api-client/Exception/ApiJSONParseException.php
- (new file) lib/api-client/Response.php
- (new file) lib/api-client/Service/Oauth.php
- (new file) lib/api-client/Client.php
- (new file) lib/api-client/Exception/ApiRequestException.php
- ...
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- riddle_accessToken
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/riddle-playful-content-on-the-go/src/views/pages/my-riddles_riddle-cards.php
- > /wp-content/plugins/riddle-playful-content-on-the-go/lib/leaderboard/app/views/landingpage-skipped.php
- > /wp-content/plugins/riddle-playful-content-on-the-go/src/views/pages/my-riddles_shortcode-modal.php
- > /wp-content/plugins/riddle-playful-content-on-the-go/src/views/components/navbar.php
- > /wp-content/plugins/riddle-playful-content-on-the-go/src/views/leaderboard-views/landingpage-skipped.php
- > /wp-content/plugins/riddle-playful-content-on-the-go/src/views/leaderboard-creator/pages/_creator-tutorial-modal.php
- > /wp-content/plugins/riddle-playful-content-on-the-go/src/views/v2/riddle/_riddleItem.php
- > /wp-content/plugins/riddle-playful-content-on-the-go/src/views/pages/my-riddles_team-selector.php
- > /wp-content/plugins/riddle-playful-content-on-the-go/src/views/components/shortcode-modal.php
- 99× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'src\\Api\\V1\\ApiConnector' not found in wp-content/plugins/riddle-playful-content-on-the-go/src/Api/V1/Api.php:5
- > PHP Warning
Use of undefined constant APP_DIR - assumed 'APP_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/riddle-playful-content-on-the-go/lib/leaderboard/src/Core/RiddleDefaultConfig.php on line 19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/riddle-playful-content-on-the-go/src/views/leaderboard-creator/pages/_creator-leaderboard-form.php on line 4
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/riddle-playful-content-on-the-go/src/views/pages/help.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/riddle-playful-content-on-the-go/lib/leaderboard/app/views/landingpage.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/riddle-playful-content-on-the-go/src/classes/UserSettings.php:41
- > PHP Fatal error
Uncaught Error: Class 'src\\classes\\Controller' not found in wp-content/plugins/riddle-playful-content-on-the-go/src/controller/AdminController.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/riddle-playful-content-on-the-go/src/views/error-nokey-defined.php:16
- > PHP Fatal error
Uncaught Error: Call to a member function renderShortcode() on null in wp-content/plugins/riddle-playful-content-on-the-go/lib/leaderboard/app/views/leaderboard-module.php:24
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/riddle-playful-content-on-the-go/src/views/v2/riddle/_riddleItem.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (23 tag instead of maximum 10)
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Connect your Riddle.com account with just a few clicks.), #2 (View your Riddle 1.0 & 2.0 content, switch between your personal account and your projects.), #3 (Grab a shortcode to place your Riddle.com content anywhere you like.), #4 (Use the Riddle Gutenberg Block to add a Riddle to your blog post or pages.), #5 (The Gutenberg Block can work with the shortcode, the Riddle ID and even with the published Riddle link.)
riddle-playful-content-on-the-go/riddle-plugin.php 85% from 13 tests
"Riddle Quiz Maker - easily add quizzes with unlimited lead generation to your site" version 4.6.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 182 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("riddle-playful-content-on-the-go.php" instead of "riddle-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin18,042 lines of code in 116 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,319 | 16 | 9,567 |
PHP | 107 | 1,328 | 627 | 4,939 |
JavaScript | 5 | 904 | 346 | 3,536 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 4 | 6.06% |
▷ Concrete classes | 62 | 93.94% |
▷ Final classes | 0 | 0.00% |
Methods | 411 | |
▷ Static methods | 77 | 18.73% |
▷ Public methods | 316 | 76.89% |
▷ Protected methods | 29 | 7.06% |
▷ Private methods | 66 | 16.06% |
Functions | 12 | |
▷ Named functions | 7 | 58.33% |
▷ Anonymous functions | 5 | 41.67% |
Constants | 37 | |
▷ Global constants | 17 | 45.95% |
▷ Class constants | 20 | 54.05% |
▷ Public constants | 20 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.87MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/icon-white-tiny.png | 1.64KB | 0.55KB | ▼ 66.55% |
public/images/riddle-wp-icon-16x16.png | 14.91KB | 0.52KB | ▼ 96.50% |
screenshot-4.png | 32.24KB | 9.19KB | ▼ 71.48% |
public/images/icons/ic-info-outline.png | 0.61KB | 0.32KB | ▼ 48.17% |
public/images/icons/ic-add.png | 0.24KB | 0.16KB | ▼ 34.02% |