Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼3.10ms] Passed 4 tests
This is a short check of server-side resources used by SVGator - Add Animated SVG Easily
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.52 ▼5.26 |
Dashboard /wp-admin | 3.48 ▲0.18 | 48.82 ▼0.29 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 51.06 ▲4.53 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 87.86 ▼9.77 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 36.37 ▲2.93 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_media_svgator |
WP_SVGATOR_VERSION |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SVGator - Add Animated SVG Easily
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲174 | 13.55 ▼0.82 | 1.94 ▲0.18 | 41.21 ▲0.96 |
Dashboard /wp-admin | 2,293 ▲105 | 5.20 ▲0.15 | 103.23 ▼1.17 | 81.58 ▲35.58 |
Posts /wp-admin/edit.php | 2,179 ▲90 | 2.42 ▲0.40 | 44.06 ▲3.38 | 35.57 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,587 ▲45 | 23.20 ▲5.01 | 733.76 ▲130.46 | 38.88 ▼18.65 |
Media Library /wp-admin/upload.php | 1,453 ▲65 | 4.24 ▲0.07 | 118.65 ▲21.83 | 45.10 ▲3.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- WP_SVGATOR_VERSION
- widget_media_svgator
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/svgator/admin/snippets/projects.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_user_option() in wp-content/plugins/svgator/admin/projects.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/svgator/includes/class/WP_SVGator/Widget_Media_SVGator.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/svgator/admin/snippets/empty-keys.php:2
- > 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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (SVGator's configuration page before logging in) image not found
svgator/svgator.php Passed 13 tests
The principal PHP file in "SVGator - Add Animated SVG Easily" v. 1.2.4 is loaded by WordPress automatically on each request
42 characters long description:
Import your animated SVGs from SVGator.com
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,621 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 274 | 175 | 1,119 |
JavaScript | 4 | 189 | 5 | 988 |
CSS | 1 | 58 | 21 | 372 |
Markdown | 1 | 30 | 0 | 72 |
SVG | 6 | 0 | 0 | 70 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 13 | 19.12% |
▷ Public methods | 54 | 79.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 20.59% |
Functions | 13 | |
▷ Named functions | 2 | 15.38% |
▷ Anonymous functions | 11 | 84.62% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 47.35KB | 19.06KB | ▼ 59.76% |