84% xlarksuite

Code Review | XLarksuite

WordPress plugin XLarksuite scored84%from 54 tests.

About plugin

  • Plugin page: xlarksuite
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 13, 2022
  • Latest release: Dec 17, 2022
  • Number of updates: 11
  • Update frequency: every 0.4 days
  • Top authors: codetay (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /279 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by XLarksuite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.81 ▼5.93
Dashboard /wp-admin3.32 ▼0.0244.09 ▼16.32
Posts /wp-admin/edit.php3.37 ▲0.0143.89 ▲0.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.84 ▼11.55
Media Library /wp-admin/upload.php3.24 ▲0.0135.33 ▼5.53

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for XLarksuite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.58 ▼1.044.79 ▲3.0539.54 ▼1.40
Dashboard /wp-admin2,207 ▲155.79 ▼0.1095.07 ▼12.2837.32 ▼7.30
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0138.43 ▲4.0236.36 ▼2.91
Add New Post /wp-admin/post-new.php1,518 ▼117.73 ▼5.61686.81 ▲31.2963.18 ▲10.34
Media Library /wp-admin/upload.php1,386 ▲14.26 ▲0.0295.22 ▼12.2542.79 ▼1.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/xlarksuite/admin/partials/xlarksuite-admin-display.php
    • > /wp-content/plugins/xlarksuite/public/partials/xlarksuite-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: woocommerce, larksuite

xlarksuite/xlarksuite.php Passed 13 tests

The principal PHP file in "XLarksuite" v. 1.0.5 is loaded by WordPress automatically on each request
23 characters long description:
WordPress for Larksuite

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected500 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12119516494
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a short overview 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.09
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods1976.00%
▷ Protected methods00.00%
▷ Private methods624.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected