94% loom-record

Code Review | Record Loom

WordPress plugin Record Loom scored 94% from 54 tests.

About plugin

  • Plugin page: loom-record
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9
  • WordPress version: 5.9.2
  • First release: Mar 11, 2022
  • Latest release: Mar 12, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: useloom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 11 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Record Loom
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0259.68 ▲3.81
Dashboard /wp-admin3.43 ▲0.0234.51 ▼9.38
Posts /wp-admin/edit.php3.66 ▲0.0249.99 ▲7.62
Add New Post /wp-admin/post-new.php6.89 ▼0.0898.22 ▼1,195.49
Media Library /wp-admin/upload.php3.31 ▲0.0129.02 ▲4.50

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Record Loom: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1915.79 ▼0.245.75 ▼0.062.35 ▼0.01
Dashboard /wp-admin2,895 ▲376.09 ▼0.09120.86 ▼21.71204.14 ▲39.37
Posts /wp-admin/edit.php2,691 ▼03.23 ▼0.0164.43 ▼27.64147.50 ▼94.90
Add New Post /wp-admin/post-new.php1,708 ▲4724.06 ▲6.14568.58 ▲156.71187.77 ▲15.87
Media Library /wp-admin/upload.php1,698 ▼05.53 ▼0.02139.11 ▼1.54187.55 ▼7.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loom-record/loom-record.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: block

loom-record/loom-record.php 92% from 13 tests

The primary PHP file in "Record Loom" version 0.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin31,300 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON30029,040
JavaScript52151812,243
Sass20011
PHP21206
CSS1100

PHP code Passed 2 tests

A short review 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.00
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin