83% simple-truefalse-quiz-slider

Code Review | Simple true/false Quiz Slider

WordPress plugin Simple true/false Quiz Slider scored83%from 54 tests.

About plugin

  • Plugin page: simple-truefalse-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 13, 2023
  • Latest release: Jan 16, 2023
  • Number of updates: 4
  • Update frequency: every 9.8 days
  • Top authors: walacky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /712 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.00ms] Passed 4 tests

This is a short check of server-side resources used by Simple true/false Quiz Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.04 ▼9.60
Dashboard /wp-admin3.35 ▲0.0447.25 ▼4.52
Posts /wp-admin/edit.php3.40 ▲0.0452.33 ▲1.07
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.79 ▼25.61
Media Library /wp-admin/upload.php3.27 ▲0.0434.90 ▼0.25

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple true/false Quiz Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▲0.061.76 ▼0.0541.59 ▼5.07
Dashboard /wp-admin2,206 ▲184.85 ▼0.99107.24 ▲8.1340.32 ▼5.51
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0641.15 ▲1.2235.79 ▼1.11
Add New Post /wp-admin/post-new.php1,514 ▼2317.72 ▼5.49656.73 ▲52.0649.06 ▼8.04
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0097.72 ▼7.2142.18 ▼3.90

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-truefalse-quiz-slider/simple-true-false-quiz.php:128

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

simple-truefalse-quiz-slider/simple-true-false-quiz.php 77% from 13 tests

The principal PHP file in "Simple true/false Quiz Slider" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-truefalse-quiz-slider.php" instead of "simple-true-false-quiz.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 258 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin269 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP11225153
CSS1140104
SVG40012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods150.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin