Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/safan-enable-svg/enable-svg.php+60
require(wp-content/plugins/safan-enable-svg/includes/class-safan-enable-svg.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.00MB] [CPU: ▼143.65ms] Passed 4 tests
A check of server-side resources used by Safan Enable SVG
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 38.33 ▲0.91 |
Dashboard /wp-admin | 3.06 ▲0.00 | 45.94 ▼2.27 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 47.65 ▼0.17 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 94.35 ▼571.89 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 35.15 ▼0.27 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Safan Enable SVG
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.89 ▼0.01 | 8.17 ▼1.06 | 53.00 ▼0.51 |
Dashboard /wp-admin | 2,967 ▲33 | 5.83 ▼0.08 | 140.76 ▼11.18 | 116.83 ▲0.22 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.00 | 67.57 ▼2.93 | 91.43 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,504 ▼77 | 18.54 ▲0.37 | 396.21 ▲3.41 | 113.45 ▼8.12 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.03 ▲0.02 | 152.97 ▼28.89 | 133.69 ▲8.18 |
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
This plugin's 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/safan-enable-svg/admin/partials/enable-svg-admin-display.php
- > /wp-content/plugins/safan-enable-svg/public/partials/enable-svg-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: These screenshots do not have images: #1 (Setting Page), #2 (Product Archive Page), #3 (Single Product Page)
safan-enable-svg/enable-svg.php 92% from 13 tests
The main PHP script in "Safan Enable SVG" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("safan-enable-svg.php" instead of "enable-svg.php")
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 plugin173 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 116 | 514 | 170 |
JavaScript | 1 | 2 | 27 | 3 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 22.73% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin