83% max-stats-table-for-wp-pro-quiz

Code Review | Max Stats Table for WP Pro Quiz

WordPress plugin Max Stats Table for WP Pro Quiz scored83%from 54 tests.

About plugin

  • Plugin page: max-stats-table-f...
  • Plugin version: 3.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Oct 11, 2019
  • Number of updates: 11
  • Update frequency: every 30.5 days
  • Top authors: j-rod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,362 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.03ms] Passed 4 tests

An overview of server-side resources used by Max Stats Table for WP Pro Quiz
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.07 ▼0.47
Dashboard /wp-admin3.34 ▼0.0055.81 ▼10.97
Posts /wp-admin/edit.php3.39 ▲0.0449.07 ▼0.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.56 ▼7.90
Media Library /wp-admin/upload.php3.26 ▲0.0439.33 ▲2.08

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Max Stats Table for WP Pro Quiz
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.35 ▼0.013.03 ▲1.4246.11 ▲0.80
Dashboard /wp-admin2,195 ▲155.61 ▲0.0192.18 ▲1.5839.24 ▼3.28
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0034.66 ▼5.7535.10 ▼2.11
Add New Post /wp-admin/post-new.php1,528 ▲222.90 ▼0.06677.32 ▲13.8349.48 ▼6.38
Media Library /wp-admin/upload.php1,397 ▼34.11 ▲0.01112.47 ▼3.4245.99 ▼3.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
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/max-stats-table-for-wp-pro-quiz/wppq_max_stats.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #11, #12, #13, #14 in max-stats-table-for-wp-pro-quiz/assets to your readme.txt
  • Screenshots: These screenshots have no corresponding images in /assets: #3 (Success notification after statistics are cleared.), #4 (Copy-Paste data for use in spreadsheets.)
You can look at the official readme.txt

max-stats-table-for-wp-pro-quiz/wppq_max_stats.php 85% from 13 tests

The main PHP script in "Max Stats Table for WP Pro Quiz" version 3.2.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("max-stats-table-for-wp-pro-quiz.php" instead of "wppq_max_stats.php")
  • Description: The description should be shorter than 140 characters (currently 297 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected328 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16773185
CSS1170111
JavaScript13032

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
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
PNG images were not found in this plugin