Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼173.95ms] Passed 4 tests
An overview of server-side resources used by Vectr - Embedded Graphics Editor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 42.38 ▲1.77 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.00 ▼10.55 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.42 ▲1.43 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 94.96 ▼685.68 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 35.22 ▼0.99 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Vectr - Embedded Graphics Editor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.91 ▲0.44 | 8.39 ▼1.05 | 47.88 ▼2.30 |
Dashboard /wp-admin | 2,967 ▲33 | 5.85 ▼0.08 | 139.52 ▼13.81 | 108.28 ▼9.58 |
Posts /wp-admin/edit.php | 2,782 ▲46 | 2.95 ▲0.25 | 76.04 ▲4.72 | 108.28 ▲12.41 |
Add New Post /wp-admin/post-new.php | 1,647 ▼36 | 21.69 ▲3.32 | 288.49 ▼95.56 | 147.15 ▲36.76 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.03 | 159.10 ▼6.09 | 129.98 ▲3.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/vectr-embedded-graphics-editor/Vectr.php:11
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
vectr-embedded-graphics-editor/Vectr.php 92% from 13 tests
Analyzing the main PHP file in "Vectr - Embedded Graphics Editor" version 1.0.0
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vectr-embedded-graphics-editor.php" instead of "Vectr.php")
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
Success! There were no dangerous files found in this plugin522 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 86 | 36 | 399 |
CSS | 2 | 1 | 0 | 85 |
PHP | 1 | 9 | 8 | 36 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 0.39KB | 0.24KB | ▼ 40.35% |