Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼2.06ms] Passed 4 tests
This is a short check of server-side resources used by SVT Simple
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 38.11 ▼5.69 |
Dashboard /wp-admin | 3.57 ▲0.26 | 49.36 ▼1.60 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 52.44 ▲7.83 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 95.55 ▼1.97 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.77 ▲1.02 |
SVT Simple Settings /wp-admin/options-general.php?page=svt-simple | 3.45 | 33.90 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
SVT Simple: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲157 | 14.28 ▼0.25 | 15.82 ▲14.03 | 43.59 ▲3.61 |
Dashboard /wp-admin | 2,211 ▲31 | 5.67 ▼0.04 | 93.39 ▲4.60 | 42.94 ▲3.09 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.16 ▲0.15 | 41.15 ▲1.23 | 38.67 ▲6.56 |
Add New Post /wp-admin/post-new.php | 1,541 ▲4 | 23.03 ▲5.01 | 607.93 ▼22.98 | 59.82 ▼36.75 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.21 ▼0.00 | 102.90 ▲1.14 | 44.62 ▲1.97 |
SVT Simple Settings /wp-admin/options-general.php?page=svt-simple | 1,117 | 5.23 | 87.89 | 45.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/svt-simple/public/partials/svt-simple-lightbox.php
- > /wp-content/plugins/svt-simple/public/partials/svt-simple-public-display.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined index: lat in wp-content/plugins/svt-simple/public/partials/svt-simple-lightbox.php on line 36
- > PHP Notice
Undefined index: lon in wp-content/plugins/svt-simple/public/partials/svt-simple-lightbox.php on line 36
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/svt-simple/includes/logging/AbstractLogger.php:12
- > PHP Notice
Undefined index: thePitch in wp-content/plugins/svt-simple/public/partials/svt-simple-lightbox.php on line 46
- > PHP Notice
Undefined index: lat in wp-content/plugins/svt-simple/public/partials/svt-simple-lightbox.php on line 35
- > PHP Notice
Undefined index: theZoom in wp-content/plugins/svt-simple/public/partials/svt-simple-lightbox.php on line 43
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/svt-simple/includes/logging/logger.php:29
- > PHP Notice
Undefined index: lon in wp-content/plugins/svt-simple/public/partials/svt-simple-lightbox.php on line 35
- > PHP Notice
Undefined index: key in wp-content/plugins/svt-simple/public/partials/svt-simple-lightbox.php on line 15
- > PHP Notice
Undefined index: theZoom in wp-content/plugins/svt-simple/public/partials/svt-simple-lightbox.php on line 36
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=svt-simple
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?key=a%20valid%20Google%20Maps%20API%20key&callback=initMap 128:248 "Google Maps JavaScript API error: InvalidKeyMapError\nhttps://developers.google.com/maps/documentation/javascript/error-messages#invalid-key-map-error"
- > GET request to /wp-admin/options-general.php?page=svt-simple
- > Javascript (severe) in unknown
https://maps.googleapis.com/maps-api-v3/api/js/54/10/map.js 1:207 Uncaught TypeError: Cannot read properties of undefined (reading 'hasAttribute')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
svt-simple/svt-simple.php 92% from 13 tests
The main file in "SVT Simple" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
No dangerous file extensions were detected1,206 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 278 | 755 | 967 |
PO File | 1 | 67 | 80 | 215 |
SVG | 1 | 0 | 1 | 18 |
JavaScript | 3 | 2 | 34 | 5 |
CSS | 3 | 0 | 15 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 3 | 3.90% |
▷ Public methods | 65 | 84.42% |
▷ Protected methods | 3 | 3.90% |
▷ Private methods | 9 | 11.69% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 100.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 |
admin/img/pegman.png | 1.41KB | 0.45KB | ▼ 67.94% |