84% fyrebox-shortcode

Code Review | Fyrebox Quizzes

WordPress plugin Fyrebox Quizzes scored 84% from 54 tests.

About plugin

  • Plugin page: fyrebox-shortcode
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-6.1
  • WordPress version: 6.3.1
  • First release: May 24, 2013
  • Latest release: Mar 13, 2023
  • Number of updates: 27
  • Update frequency: every 132.8 days
  • Top authors: CyrilG (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 4,504 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Fyrebox Quizzes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.83 ▼4.78
Dashboard /wp-admin3.35 ▲0.0447.85 ▼0.52
Posts /wp-admin/edit.php3.40 ▲0.0444.65 ▲1.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.01 ▼18.43
Media Library /wp-admin/upload.php3.27 ▲0.0444.12 ▲12.08
Fyrebox /wp-admin/options-general.php?page=fyrebox-shortcode3.2631.53

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 199 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Fyrebox Quizzes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.25 ▼1.113.16 ▲1.3739.56 ▼9.34
Dashboard /wp-admin2,213 ▲314.85 ▼0.0499.37 ▼14.6237.06 ▼3.45
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0336.24 ▲0.4231.58 ▼1.03
Add New Post /wp-admin/post-new.php1,548 ▲1318.39 ▼4.67619.53 ▼9.4461.45 ▼2.76
Media Library /wp-admin/upload.php1,395 ▲74.12 ▼0.12106.38 ▼1.8841.03 ▼6.56
Fyrebox /wp-admin/options-general.php?page=fyrebox-shortcode9642.2131.7075.86

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% 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)
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fyrebox-shortcode/fyrebox-shortcode.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Example of a Yes/No Quiz), #2 (Example of the Start Screen)
Please take inspiration from this readme.txt

fyrebox-shortcode/fyrebox-shortcode.php 92% from 13 tests

The primary PHP file in "Fyrebox Quizzes" version 2.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)

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
Good job! No executable or dangerous file extensions detected4,734 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PO File481,2001,2484,506
PHP12232227
JavaScript1061

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.61
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%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin