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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 59.68 ▲3.81 |
Dashboard /wp-admin | 3.43 ▲0.02 | 34.51 ▼9.38 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 49.99 ▲7.62 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 98.22 ▼1,195.49 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲19 | 15.79 ▼0.24 | 5.75 ▼0.06 | 2.35 ▼0.01 |
Dashboard /wp-admin | 2,895 ▲37 | 6.09 ▼0.09 | 120.86 ▼21.71 | 204.14 ▲39.37 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.01 | 64.43 ▼27.64 | 147.50 ▼94.90 |
Add New Post /wp-admin/post-new.php | 1,708 ▲47 | 24.06 ▲6.14 | 568.58 ▲156.71 | 187.77 ▲15.87 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▼0.02 | 139.11 ▼1.54 | 187.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 29,040 |
JavaScript | 5 | 215 | 181 | 2,243 |
Sass | 2 | 0 | 0 | 11 |
PHP | 2 | 1 | 20 | 6 |
CSS | 1 | 1 | 0 | 0 |
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 code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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