72% buzzfeed-style-personality-quizes

Code Review | Wordpress BuzzFeed Style Quizz Lite

WordPress plugin Wordpress BuzzFeed Style Quizz Lite scored72%from 54 tests.

About plugin

  • Plugin page: buzzfeed-style-pe...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: May 1, 2015
  • Latest release: May 1, 2015
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: voodoo911 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,259 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.83 ▼9.65
Dashboard /wp-admin3.41 ▲0.1155.66 ▼7.17
Posts /wp-admin/edit.php3.54 ▲0.1857.97 ▲4.99
Add New Post /wp-admin/post-new.php3.18 ▼2.7139.20 ▼62.76
Media Library /wp-admin/upload.php3.32 ▲0.0937.74 ▼1.48
All Quizzes /wp-admin/edit.php?post_type=quiz3.3942.39
Add New Quiz /wp-admin/post-new.php?post_type=quiz3.1840.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,086 ▲32514.75 ▲0.145.97 ▲4.3044.17 ▼3.18
Dashboard /wp-admin2,353 ▲1796.23 ▲0.58116.44 ▲17.6183.72 ▲40.39
Posts /wp-admin/edit.php2,300 ▲2003.43 ▲1.3848.89 ▲10.3471.53 ▲36.78
Add New Post /wp-admin/post-new.php1,644 ▲11923.61 ▲0.49624.18 ▼56.2594.58 ▲33.86
Media Library /wp-admin/upload.php1,429 ▲294.12 ▼0.0482.11 ▼28.9471.46 ▲27.65
All Quizzes /wp-admin/edit.php?post_type=quiz1,2783.2846.7073.58
Add New Quiz /wp-admin/post-new.php?post_type=quiz2,0763.5965.5694.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

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)
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
CSS81,25917215,954
JavaScript45813771,474
Sass1319221,158
LESS1319311,149
PHP714118505
SVG100504

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 code0.51
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png24.66KB10.27KB▼ 58.34%
modules/inc/assets/img/glyphicons-halflings-white.png8.57KB9.20KB0.00%
screenshot-2.png152.24KB57.86KB▼ 61.99%
modules/images/linebutton_78x20_en.png2.40KB1.69KB▼ 29.58%
screenshot-3.png518.28KB191.10KB▼ 63.13%