84% croquet-metaverse-web-showcase

Code Review | Croquet Metaverse Web Showcase

WordPress plugin Croquet Metaverse Web Showcase scored84%from 54 tests.

About plugin

  • Plugin page: croquet-metaverse...
  • Plugin version: 1.1.11
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Jan 18, 2023
  • Latest release: Aug 8, 2023
  • Number of updates: 20
  • Update frequency: every 10.2 days
  • Top authors: yoshikiohshima (90%)zfox23 (15%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /1,532 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Croquet Metaverse Web Showcase
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0233.28 ▼5.48
Dashboard /wp-admin3.31 ▲0.0142.75 ▼11.92
Posts /wp-admin/edit.php3.36 ▲0.0147.28 ▼0.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.98 ▼11.58
Media Library /wp-admin/upload.php3.24 ▲0.0135.46 ▼0.40

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Croquet Metaverse Web Showcase: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.26 ▼1.091.72 ▼0.1642.64 ▼0.45
Dashboard /wp-admin2,206 ▲185.85 ▲0.03106.55 ▲4.7242.62 ▼0.63
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0639.66 ▼1.8434.81 ▲0.08
Add New Post /wp-admin/post-new.php6,354 ▲4,82127.65 ▲4.43823.72 ▲114.8860.96 ▼4.66
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0996.51 ▼10.3041.20 ▼3.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/croquet-metaverse-web-showcase/croquet-metaverse-web-showcase.php:43

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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: multiuser, metaverse, 3d

croquet-metaverse-web-showcase/croquet-metaverse-web-showcase.php Passed 13 tests

Analyzing the main PHP file in "Croquet Metaverse Web Showcase" version 1.1.11
30 characters long description:
Croquet Metaverse Web Showcase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin824 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36178395
PHP25953151
JSON300131
Markdown1590105
Sass28040
CSS2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin