Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.96ms] Passed 4 tests
Server-side resources used by SacksonWeb Data
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.17 ▼3.89 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.14 ▼17.72 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.35 ▲1.57 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.81 ▲4.22 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.69 ▲4.22 |
Sackson Web Pro - Settings /wp-admin/options-general.php?page=sackson-web-premium-settings | 3.25 | 31.46 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
sacksonweb_last_log-wp.com |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for SacksonWeb Data
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲134 | 13.75 ▼1.03 | 7.23 ▲5.44 | 38.24 ▼7.02 |
Dashboard /wp-admin | 2,197 ▲19 | 5.62 ▼0.13 | 94.39 ▼16.23 | 44.14 ▲0.72 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▲0.01 | 39.45 ▲2.11 | 36.21 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.22 ▲0.14 | 676.90 ▲62.77 | 51.50 ▼13.74 |
Media Library /wp-admin/upload.php | 1,411 ▲17 | 4.20 ▼0.00 | 110.06 ▲13.30 | 49.18 ▲8.39 |
Sackson Web Pro - Settings /wp-admin/options-general.php?page=sackson-web-premium-settings | 851 | 2.01 | 26.13 | 30.20 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- sacksonweb_last_log-wp.com
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sackson-web-data/admin/partials/sacksonweb-data-admin-display.php
- > /wp-content/plugins/sackson-web-data/public/partials/sacksonweb-data-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sackson-web-data/includes/class-sacksonweb-data-settings.php:184
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #1 (This is the settings and opt-in page of this plugin.) image not found
sackson-web-data/sacksonweb-data.php 85% from 13 tests
"SacksonWeb Data" version 1.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sackson-web-data.php" instead of "sacksonweb-data.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin701 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 278 | 776 | 695 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 6 | 9.52% |
▷ Public methods | 57 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 9.52% |
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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 34.15KB | 12.80KB | ▼ 62.52% |