83% xxlboard

Code Review | XXLBoard

WordPress plugin XXLBoard scored 83% from 54 tests.

About plugin

  • Plugin page: xxlboard
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 10, 2013
  • Latest release: Mar 10, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: merqde (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.41ms] Passed 4 tests

A check of server-side resources used by XXLBoard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1739.63 ▼1.95
Dashboard /wp-admin3.48 ▲0.1757.45 ▲8.16
Posts /wp-admin/edit.php3.59 ▲0.2347.78 ▼1.82
Add New Post /wp-admin/post-new.php6.06 ▲0.1790.05 ▼7.86
Media Library /wp-admin/upload.php3.40 ▲0.1739.92 ▲6.00

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for XXLBoard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.62 ▼0.972.30 ▲0.6843.73 ▲6.51
Dashboard /wp-admin2,208 ▲205.84 ▲0.98101.91 ▼3.5080.00 ▲36.55
Posts /wp-admin/edit.php2,103 ▲142.04 ▼0.0934.05 ▼6.6834.17 ▼2.80
Add New Post /wp-admin/post-new.php1,682 ▲14622.41 ▼0.94761.87 ▲96.9270.81 ▲15.40
Media Library /wp-admin/upload.php1,405 ▲204.18 ▲0.0294.36 ▼3.2870.43 ▲23.23

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 is_admin() in wp-content/plugins/xxlboard/hooks.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vf_get_value() in wp-content/plugins/xxlboard/admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/xxlboard/templates/embed_template.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/xxlboard/plugin.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_preview() in wp-content/plugins/xxlboard/comments.php:1
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/xxlboard/plugin.php on line 22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

xxlboard/plugin.php 92% from 13 tests

The main PHP file in "XXLBoard" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("xxlboard.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin1,183 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP91732771,027
CSS200102
JavaScript16254

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/transparent.png0.12KB0.09KB▼ 22.40%
assets/bg-button-blue.png0.18KB0.21KB0.00%
assets/vanilla-sprite.png1.65KB1.43KB▼ 13.40%