Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.05ms] Passed 4 tests
This is a short check of server-side resources used by Galdget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 45.74 ▲5.88 |
Dashboard /wp-admin | 3.52 ▲0.18 | 44.37 ▼16.87 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 49.12 ▲5.93 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 92.22 ▼5.57 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 36.17 ▲4.38 |
Galdget /wp-admin/options-general.php?page=galdget-settings | 3.47 | 35.20 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
galdget-urls |
widget_recent-posts |
widget_recent-comments |
galdget-urls1 |
db_upgraded |
galdget-urls2 |
galdget-version |
widget_theysaidso_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Galdget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲143 | 13.58 ▼1.01 | 4.99 ▲3.43 | 38.85 ▼5.60 |
Dashboard /wp-admin | 2,213 ▲24 | 4.86 ▼0.08 | 109.04 ▼10.59 | 39.70 ▼6.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.06 | 39.21 ▲5.86 | 35.06 ▼3.35 |
Add New Post /wp-admin/post-new.php | 6,315 ▲4,796 | 21.82 ▼1.38 | 856.11 ▲186.31 | 59.33 ▲1.70 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▼0.12 | 98.40 ▲3.25 | 41.56 ▼1.46 |
Galdget /wp-admin/options-general.php?page=galdget-settings | 1,530 | 3.12 | 44.89 | 35.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_galdget_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/galdget/galdget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
galdget/galdget.php 92% from 13 tests
The main file in "Galdget" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Everything looks great! No dangerous files found in this plugin2,074 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 136 | 0 | 857 |
PHP | 1 | 98 | 21 | 673 |
PO File | 1 | 94 | 96 | 216 |
CSS | 2 | 15 | 0 | 194 |
HTML | 3 | 11 | 0 | 134 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 190.00 |
▷ Minimum class complexity | 190.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 24.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 100.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 50.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin