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.83MB] [CPU: ▼1.46ms] Passed 4 tests
An overview of server-side resources used by SAF MOSS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 43.42 ▲0.66 |
Dashboard /wp-admin | 4.33 ▲1.03 | 58.80 ▲5.53 |
Posts /wp-admin/edit.php | 4.38 ▲1.03 | 55.04 ▼0.00 |
Add New Post /wp-admin/post-new.php | 6.94 ▲1.05 | 88.19 ▼12.03 |
Media Library /wp-admin/upload.php | 4.25 ▲1.02 | 47.50 ▲10.66 |
Settings /wp-admin/admin.php?page=moss-saf-settings | 4.13 | 36.44 |
Definitions /wp-admin/admin.php?page=moss-saf-definitions | 4.24 | 39.96 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
moss_saf_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SAF MOSS
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 13.35 ▼1.06 | 1.86 ▲0.10 | 43.22 ▲4.25 |
Dashboard /wp-admin | 2,246 ▲66 | 5.97 ▲0.31 | 100.28 ▲12.17 | 44.89 ▲2.82 |
Posts /wp-admin/edit.php | 2,150 ▲47 | 2.43 ▲0.42 | 36.65 ▼5.02 | 34.91 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.06 ▼0.64 | 671.64 ▲54.88 | 37.03 ▼20.18 |
Media Library /wp-admin/upload.php | 1,451 ▲48 | 4.48 ▲0.33 | 98.25 ▼2.32 | 41.15 ▼1.76 |
Settings /wp-admin/admin.php?page=moss-saf-settings | 1,222 | 2.21 | 34.34 | 36.46 |
Definitions /wp-admin/admin.php?page=moss-saf-definitions | 1,405 | 2.12 | 29.98 | 27.30 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- moss_saf_settings
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=moss-saf-settings
- > Warning in wp-content/plugins/saf-moss/includes/admin-notices.php+51
Use of undefined constant VAT_MOSS_ACTIVATION_ERROR_NOTICE - assumed 'VAT_MOSS_ACTIVATION_ERROR_NOTICE' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=moss-saf-settings
- > Warning in wp-content/plugins/saf-moss/includes/admin-notices.php+51
Use of undefined constant VAT_MOSS_ACTIVATION_UPDATE_NOTICE - assumed 'VAT_MOSS_ACTIVATION_UPDATE_NOTICE' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=moss-saf-settings
- > Warning in wp-content/plugins/saf-moss/includes/admin-notices.php+51
Use of undefined constant VAT_MOSS_DEACTIVATION_ERROR_NOTICE - assumed 'VAT_MOSS_DEACTIVATION_ERROR_NOTICE' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=moss-saf-settings
- > Warning in wp-content/plugins/saf-moss/includes/admin-notices.php+51
Use of undefined constant VAT_MOSS_DEACTIVATION_UPDATE_NOTICE - assumed 'VAT_MOSS_DEACTIVATION_UPDATE_NOTICE' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=moss-saf-settings
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% 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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function lyquidity\\vat_moss_saf\\get_default_currency() in wp-content/plugins/saf-moss/test.php:17
- >
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (31 tag instead of maximum 10)
saf-moss/saf-moss.php 92% from 13 tests
The main file in "SAF MOSS" v. 1.0.13 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Everything looks great! No dangerous files found in this plugin4,642 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 1,130 | 1,795 | 4,316 |
JavaScript | 3 | 29 | 43 | 210 |
CSS | 1 | 22 | 5 | 116 |
PHP code Passed 2 tests
This is a short overview 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.39 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 4 | 4.21% |
▷ Public methods | 94 | 98.95% |
▷ Protected methods | 1 | 1.05% |
▷ Private methods | 0 | 0.00% |
Functions | 90 | |
▷ Named functions | 82 | 91.11% |
▷ Anonymous functions | 8 | 8.89% |
Constants | 21 | |
▷ Global constants | 21 | 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
No PNG files were detected