Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.23ms] Passed 4 tests
Server-side resources used by ScrubBill
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.70 ▲3.46 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.11 ▼3.47 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.23 ▼0.30 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 91.08 ▼20.52 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.68 ▲3.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
ScrubBill: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.10 ▼0.25 | 1.77 ▲0.30 | 43.41 ▲3.53 |
Dashboard /wp-admin | 2,189 ▲14 | 5.51 ▼0.19 | 85.09 ▼16.71 | 34.78 ▼6.63 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.04 | 36.39 ▲1.27 | 36.02 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 18.36 ▲0.10 | 656.69 ▲58.51 | 69.19 ▲6.30 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.26 ▲0.09 | 101.06 ▲7.03 | 43.30 ▼1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Scrubbill\\Plugin\\Scrubbill\\trailingslashit() in wp-content/plugins/scrubbill/includes/config/config.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/scrubbill/includes/classes/class-scrubbill-shipping-method.php:21
- > PHP Fatal error
Trait 'Scrubbill\\Plugin\\Scrubbill\\Traits\\Singleton' not found in wp-content/plugins/scrubbill/includes/classes/class-bootstrap.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function Scrubbill\\Plugin\\Scrubbill\\trailingslashit() in wp-content/plugins/scrubbill/includes/config/config.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% 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
2 plugin tags: woocommerce, shipping
scrubbill/scrubbill.php 92% from 13 tests
The principal PHP file in "ScrubBill" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin489 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 135 | 502 | 489 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 24 | 80.00% |
▷ Protected methods | 6 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 13 | |
▷ Global constants | 2 | 15.38% |
▷ Class constants | 11 | 84.62% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin