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.63MB] [CPU: ▼20.27ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress BuzzFeed Style Quizz Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 32.83 ▼9.65 |
Dashboard /wp-admin | 3.41 ▲0.11 | 55.66 ▼7.17 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 57.97 ▲4.99 |
Add New Post /wp-admin/post-new.php | 3.18 ▼2.71 | 39.20 ▼62.76 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.74 ▼1.48 |
All Quizzes /wp-admin/edit.php?post_type=quiz | 3.39 | 42.39 |
Add New Quiz /wp-admin/post-new.php?post_type=quiz | 3.18 | 40.27 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Wordpress BuzzFeed Style Quizz Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,086 ▲325 | 14.75 ▲0.14 | 5.97 ▲4.30 | 44.17 ▼3.18 |
Dashboard /wp-admin | 2,353 ▲179 | 6.23 ▲0.58 | 116.44 ▲17.61 | 83.72 ▲40.39 |
Posts /wp-admin/edit.php | 2,300 ▲200 | 3.43 ▲1.38 | 48.89 ▲10.34 | 71.53 ▲36.78 |
Add New Post /wp-admin/post-new.php | 1,644 ▲119 | 23.61 ▲0.49 | 624.18 ▼56.25 | 94.58 ▲33.86 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.12 ▼0.04 | 82.11 ▼28.94 | 71.46 ▲27.65 |
All Quizzes /wp-admin/edit.php?post_type=quiz | 1,278 | 3.28 | 46.70 | 73.58 |
Add New Quiz /wp-admin/post-new.php?post_type=quiz | 2,076 | 3.59 | 65.56 | 94.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=quiz
- > Notice in wp-content/plugins/buzzfeed-style-personality-quizes/modules/meta_box.php+362
Undefined index: label_noncename
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buzzfeed-style-personality-quizes/modules/meta_box.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buzzfeed-style-personality-quizes/modules/meta_box.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buzzfeed-style-personality-quizes/modules/cpt.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buzzfeed-style-personality-quizes/modules/scripts.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buzzfeed-style-personality-quizes/modules/hooks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/buzzfeed-style-personality-quizes/modules/shortcodes.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=quiz
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/buzzfeed-style-personality-quizes/modules/js/admin.js?ver=1.0:19:15)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=quiz
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Quiz Creation Step 1), #2 (Quiz Creation Step 2), #3 (Quiz Creation Step 3), #4 (Quiz Creation Step 4)
buzzfeed-style-personality-quizes/wp-buzz-quizz-lite.php 92% from 13 tests
The main file in "Wordpress BuzzFeed Style Quizz Lite" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buzzfeed-style-personality-quizes.php" instead of "wp-buzz-quizz-lite.php")
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
Everything looks great! No dangerous files found in this plugin20,744 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,259 | 172 | 15,954 |
JavaScript | 4 | 581 | 377 | 1,474 |
Sass | 13 | 19 | 22 | 1,158 |
LESS | 13 | 19 | 31 | 1,149 |
PHP | 7 | 141 | 18 | 505 |
SVG | 1 | 0 | 0 | 504 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
11 PNG files occupy 1.04MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 24.66KB | 10.27KB | ▼ 58.34% |
modules/inc/assets/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
screenshot-2.png | 152.24KB | 57.86KB | ▼ 61.99% |
modules/images/linebutton_78x20_en.png | 2.40KB | 1.69KB | ▼ 29.58% |
screenshot-3.png | 518.28KB | 191.10KB | ▼ 63.13% |