Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.35ms] Passed 4 tests
A check of server-side resources used by WP Mosmos Direct
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 33.58 ▼10.28 |
Dashboard /wp-admin | 3.38 ▲0.04 | 43.91 ▼14.69 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 44.89 ▲0.33 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 78.87 ▼7.76 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.20 ▼0.67 |
Mosmos /wp-admin/options-general.php?page=mosmos | 3.25 | 30.26 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Mosmos Direct
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.36 ▲0.09 | 1.64 ▲0.05 | 37.05 ▼4.81 |
Dashboard /wp-admin | 2,196 ▲19 | 5.55 ▼0.05 | 85.12 ▼2.96 | 39.87 ▲0.09 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.02 | 34.69 ▲0.12 | 31.62 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.97 ▲0.08 | 654.64 ▲14.40 | 69.25 ▲5.81 |
Media Library /wp-admin/upload.php | 1,395 ▼2 | 4.29 ▲0.02 | 95.60 ▼21.43 | 44.02 ▼3.22 |
Mosmos /wp-admin/options-general.php?page=mosmos | 1,016 | 2.05 | 21.44 | 28.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mosmos
- > Notice in wp-content/plugins/mosmos/smartcheckout.php+266
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mosmos
- > Notice in wp-content/plugins/mosmos/smartcheckout.php+65
Undefined variable: all_categories
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mosmos/smartcheckout.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=mosmos
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=mosmos 253:18 Uncaught SyntaxError: Unexpected token ';'
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: settings, configuration, configuration management
mosmos/smartcheckout.php 92% from 13 tests
This is the main PHP file of "WP Mosmos Direct" version 2.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mosmos.php" instead of "smartcheckout.php")
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
Everything looks great! No dangerous files found in this plugin597 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 161 | 53 | 597 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin