Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼1.15ms] Passed 4 tests
An overview of server-side resources used by SOGO Accessibility
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 43.33 ▼6.68 |
Dashboard /wp-admin | 3.64 ▲0.34 | 50.33 ▼0.59 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 52.90 ▲0.33 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 104.48 ▲6.02 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 42.52 ▲2.34 |
Premium /wp-admin/admin.php?page=sogo_accessibility&tab=premium | 3.48 | 33.20 |
CSS /wp-admin/admin.php?page=sogo_accessibility&tab=css | 3.48 | 44.78 |
Settings /wp-admin/admin.php?page=sogo_accessibility&tab=settings | 3.54 | 43.29 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
_sogo_acc_lk_status |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
sogo_accessibility_settings |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for SOGO Accessibility
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,035 ▲289 | 13.70 ▼0.88 | 11.28 ▲8.66 | 43.78 ▼0.41 |
Dashboard /wp-admin | 2,236 ▲48 | 4.96 ▼0.12 | 136.23 ▲33.22 | 53.23 ▲12.29 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.02 ▼0.01 | 42.63 ▲3.44 | 38.46 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 17.38 ▼0.36 | 683.30 ▲9.23 | 50.91 ▼3.43 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.32 ▲0.09 | 103.23 ▼8.02 | 48.06 ▼2.97 |
Premium /wp-admin/admin.php?page=sogo_accessibility&tab=premium | 939 | 2.23 | 33.05 | 30.41 |
CSS /wp-admin/admin.php?page=sogo_accessibility&tab=css | 932 | 2.14 | 29.11 | 27.31 |
Settings /wp-admin/admin.php?page=sogo_accessibility&tab=settings | 1,827 | 6.72 | 144.42 | 58.57 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- sogo_accessibility_settings
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- _sogo_acc_lk_status
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'sogo_accessibility_Option' not found in wp-content/plugins/sogo-accessibility/public/public-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/sogo-accessibility/admin/partials/meta-box-display.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sogo-accessibility/admin/partials/admin-display.php:24
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
1 plugin tags: accessibility
sogo-accessibility/sogo_accessibility.php 85% from 13 tests
"SOGO Accessibility" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("sogo-accessibility.php" instead of "sogo_accessibility.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,129 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 128 | 40 | 1,455 |
PHP | 19 | 448 | 1,065 | 1,084 |
LESS | 2 | 91 | 45 | 658 |
JavaScript | 7 | 70 | 56 | 495 |
PO File | 3 | 197 | 242 | 421 |
SVG | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 9 | 11.84% |
▷ Public methods | 59 | 77.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 22.37% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/spritesheet.png | 9.70KB | 3.94KB | ▼ 59.39% |
public/css/sogo-logo.png | 2.62KB | 1.51KB | ▼ 42.51% |