Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.00ms] Passed 4 tests
A check of server-side resources used by Apaczka.pl WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.47 ▲4.44 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.78 ▼8.43 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.95 ▲0.39 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 83.94 ▼14.81 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.47 ▲2.84 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Apaczka.pl WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 13.66 ▼0.73 | 1.72 ▼0.20 | 42.86 ▼0.18 |
Dashboard /wp-admin | 2,215 ▲15 | 5.83 ▲0.80 | 102.74 ▲1.56 | 39.57 ▼1.48 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.01 | 39.46 ▲4.48 | 34.37 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,545 ▲5 | 23.20 ▲4.75 | 611.09 ▼4.33 | 49.31 ▼10.91 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.25 ▼0.00 | 98.68 ▼5.13 | 46.56 ▼3.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: id in wp-content/plugins/apaczka/classes/views/html-order-metabox.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function woocommerce_wp_hidden_input() in wp-content/plugins/apaczka/classes/views/html-order-metabox.php:20
- > PHP Notice
Undefined variable: id in wp-content/plugins/apaczka/classes/views/html-order-metabox.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/apaczka/templates/geowidget-review-order-after-shipping.php:17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: apaczka, woocommerce
apaczka/apaczka.php 85% from 13 tests
"Apaczka.pl WooCommerce" version 1.4.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
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
Good job! No executable or dangerous file extensions detected17,540 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 308 | 4 | 14,275 |
PHP | 12 | 773 | 303 | 3,176 |
CSS | 2 | 21 | 1 | 89 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 23.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 14 | 9.93% |
▷ Public methods | 121 | 85.82% |
▷ Protected methods | 7 | 4.96% |
▷ Private methods | 13 | 9.22% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 40 | |
▷ Global constants | 1 | 2.50% |
▷ Class constants | 39 | 97.50% |
▷ Public constants | 39 | 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
No PNG files were detected