Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼8.31ms] Passed 4 tests
A check of server-side resources used by Serbian Addons for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 39.95 ▼1.34 |
Dashboard /wp-admin | 3.45 ▲0.10 | 45.90 ▼17.90 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.27 ▼0.69 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 85.89 ▼13.31 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 35.65 ▲0.22 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 167 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Serbian Addons for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.44 ▲0.07 | 1.73 ▼0.02 | 43.17 ▲3.37 |
Dashboard /wp-admin | 2,195 ▲14 | 5.62 ▼0.06 | 89.47 ▼19.12 | 40.88 ▼3.19 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.01 | 40.46 ▼2.28 | 36.22 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,528 ▼1 | 23.27 ▲0.06 | 655.23 ▲32.06 | 57.13 ▲2.18 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.24 ▼0.03 | 97.20 ▼2.68 | 38.99 ▼2.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 57× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php:10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'Oblak\\WP\\Base_Plugin_Installer' not found in wp-content/plugins/serbian-addons-for-woocommerce/lib/Core/Installer.php:16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce, woocommerce-serbia, serbia
serbian-addons-for-woocommerce/serbian-addons-for-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "Serbian Addons for WooCommerce" version 3.1.8
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "7.0")
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 plugin11,777 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 2,956 | 9,942 | 11,013 |
PO File | 2 | 139 | 160 | 353 |
JSON | 3 | 0 | 0 | 351 |
Markdown | 2 | 17 | 0 | 34 |
XML | 1 | 0 | 0 | 21 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 2 | 0 | 0 | 2 |
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.31 |
Average class complexity | 11.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 9 | |
Traits | 3 | |
Classes | 104 | |
▷ Abstract classes | 22 | 21.15% |
▷ Concrete classes | 82 | 78.85% |
▷ Final classes | 1 | 1.22% |
Methods | 1,150 | |
▷ Static methods | 105 | 9.13% |
▷ Public methods | 911 | 79.22% |
▷ Protected methods | 188 | 16.35% |
▷ Private methods | 51 | 4.43% |
Functions | 59 | |
▷ Named functions | 38 | 64.41% |
▷ Anonymous functions | 21 | 35.59% |
Constants | 39 | |
▷ Global constants | 6 | 15.38% |
▷ Class constants | 33 | 84.62% |
▷ Public constants | 33 | 100.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