10% display-xenforo-node

Code Review | Display Xenforo Node

WordPress plugin Display Xenforo Node scored10%from 54 tests.

About plugin

  • Plugin page: display-xenforo-node
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Jan 25, 2014
  • Latest release: Jan 25, 2014
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: anybuy.vn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,089 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-includes/class-wpdb.php+2035
    mysqli_real_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.61ms] Passed 4 tests

An overview of server-side resources used by Display Xenforo Node
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.30 ▼6.80
Dashboard /wp-admin3.31 ▼0.0447.77 ▼18.21
Posts /wp-admin/edit.php3.36 ▲0.0047.17 ▼2.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.29 ▼15.04
Media Library /wp-admin/upload.php3.23 ▲0.0039.15 ▲4.62

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
It is recommended to fix the following issues
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/display-xenforo-node/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Display Xenforo Node
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.48 ▼0.111.74 ▼0.2141.81 ▼1.65
Dashboard /wp-admin2,221 ▲214.87 ▼1.01110.10 ▼15.1039.26 ▼5.24
Posts /wp-admin/edit.php2,100 ▼12.01 ▲0.0237.37 ▼0.3734.34 ▲2.04
Add New Post /wp-admin/post-new.php1,545 ▲1323.22 ▼0.12650.12 ▼55.6455.42 ▼2.74
Media Library /wp-admin/upload.php1,400 ▼34.27 ▲0.0197.53 ▼6.2942.65 ▼2.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-xenforo-node/wpdxfn_main.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/display-xenforo-node/wpdxfn_admin.php:28
    • > PHP Notice
      Undefined index: wpdxfn_hidden in wp-content/plugins/display-xenforo-node/wpdxfn_admin.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tested up to: Invalid version format
Please take inspiration from this readme.txt

display-xenforo-node/wpdxfn_main.php 85% from 13 tests

The entry point to "Display Xenforo Node" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 180 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("display-xenforo-node.php" instead of "wpdxfn_main.php")

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
There were no executable files found in this plugin169 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2615169

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions7
▷ Named functions7100.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
No PNG images were found in this plugin