84% woominecraft

Code Review | WooMinecraft-WP

WordPress plugin WooMinecraft-WP scored84%from 54 tests.

About plugin

  • Plugin page: woominecraft
  • Plugin version: 1.4.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Feb 13, 2016
  • Latest release: Apr 2, 2022
  • Number of updates: 43
  • Update frequency: every 52.2 days
  • Top authors: Phyrax (83.72%)jaycodez (18.6%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /11,440 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: ▼1.47ms] Passed 4 tests

This is a short check of server-side resources used by WooMinecraft-WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.43 ▼4.45
Dashboard /wp-admin3.34 ▲0.0350.12 ▼4.69
Posts /wp-admin/edit.php3.39 ▲0.0354.19 ▲6.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.03 ▲2.24
Media Library /wp-admin/upload.php3.26 ▲0.0337.77 ▲1.01

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooMinecraft-WP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5913.22 ▼1.432.16 ▲0.5244.02 ▲2.92
Dashboard /wp-admin2,226 ▲234.92 ▼0.96112.54 ▼0.0042.65 ▼2.20
Posts /wp-admin/edit.php2,108 ▲82.05 ▲0.0039.58 ▲0.5735.88 ▲1.41
Add New Post /wp-admin/post-new.php1,545 ▼023.41 ▲0.01630.21 ▼36.6657.43 ▼0.53
Media Library /wp-admin/upload.php1,402 ▲24.24 ▲0.0798.66 ▼19.8640.69 ▼6.91

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooMinecraft\\WooCommerce\\get_servers() in wp-content/plugins/woominecraft/includes/views/commands.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/woominecraft/includes/views/admin-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woominecraft/includes/views/server-section.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooMinecraft\\plugin_dir_path() in wp-content/plugins/woominecraft/woominecraft.php:18

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 96% from 29 tests

readme.txt Passed 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
3 plugin tags: minecraft, donations, woocommerce

woominecraft/woominecraft.php 92% from 13 tests

The main PHP script in "WooMinecraft-WP" version 1.4.5 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4.2" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin954 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP9171290789
JavaScript23833123
CSS29040
Markdown1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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
Namespaces6
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%
Functions52
▷ Named functions4790.38%
▷ Anonymous functions59.62%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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
There are no PNG files in this plugin