Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼131.39ms] Passed 4 tests
Server-side resources used by WP-Record
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 34.60 ▲12.25 |
Dashboard /wp-admin | 3.19 ▲0.14 | 47.63 ▲10.29 |
Posts /wp-admin/edit.php | 3.30 ▲0.20 | 49.99 ▲9.93 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.11 | 101.34 ▼549.32 |
Media Library /wp-admin/upload.php | 3.14 ▲0.13 | 36.62 ▲3.56 |
Server storage [IO: ▲10.91MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 91 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wp-record-id |
Browser metrics Passed 4 tests
Checking browser requirements for WP-Record
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,818 ▲236 | 17.19 ▲1.55 | 14.67 ▲2.95 | 48.82 ▼5.03 |
Dashboard /wp-admin | 2,985 ▲54 | 7.16 ▲1.00 | 148.82 ▼6.84 | 105.92 ▼7.24 |
Posts /wp-admin/edit.php | 2,781 ▲42 | 3.46 ▲0.74 | 77.18 ▲9.15 | 103.50 ▲17.19 |
Add New Post /wp-admin/post-new.php | 6,970 ▲5,287 | 28.68 ▲9.89 | 1,200.86 ▲796.50 | 141.10 ▲32.20 |
Media Library /wp-admin/upload.php | 1,846 ▲98 | 5.79 ▲0.78 | 146.86 ▼8.96 | 113.25 ▼1.87 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- wp-record-id
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-record/public/partials/wp-record-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Record_Admin' not found in wp-content/plugins/wp-record/admin/partials/wp-record-admin-display-meta-box.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: posts record, voice recorder
wp-record/wp-record.php Passed 13 tests
The entry point to "WP-Record" version 0.1.0 is a PHP file that has certain tags in its header comment area
55 characters long description:
Record your voice in the post, give voice to your page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin68,365 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 3,897 | 34,833 | 60,208 |
TypeScript | 6 | 707 | 4,162 | 5,078 |
SVG | 1 | 0 | 3 | 2,370 |
PHP | 14 | 208 | 697 | 516 |
Markdown | 3 | 29 | 0 | 129 |
JSON | 5 | 0 | 0 | 40 |
CSS | 6 | 2 | 28 | 21 |
LESS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 37 | 86.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.95% |
Functions | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 12.54KB | 5.71KB | ▼ 54.46% |
assets/screenshot-2.png | 178.19KB | 72.56KB | ▼ 59.28% |
assets/screenshot-3.png | 59.39KB | 21.45KB | ▼ 63.88% |