Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼141.31ms] Passed 4 tests
A check of server-side resources used by Mystical Companion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 37.43 ▲13.87 |
Dashboard /wp-admin | 3.11 ▲0.05 | 51.95 ▼2.25 |
Posts /wp-admin/edit.php | 3.17 ▲0.05 | 45.18 ▲5.22 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 94.38 ▼568.24 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 35.59 ▲0.05 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mystical Companion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,725 ▲129 | 15.82 ▼0.15 | 9.25 ▲1.28 | 51.05 ▼4.91 |
Dashboard /wp-admin | 2,992 ▲58 | 5.91 ▼0.03 | 139.18 ▼7.40 | 117.77 ▲2.59 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.70 ▲0.01 | 73.86 ▲3.43 | 101.64 ▲4.95 |
Add New Post /wp-admin/post-new.php | 1,637 ▲33 | 21.29 ▲2.47 | 287.23 ▼88.13 | 112.34 ▼11.68 |
Media Library /wp-admin/upload.php | 1,833 ▲23 | 5.03 ▲0.01 | 155.91 ▲4.70 | 130.55 ▲4.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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 no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/mystical-companion/widgets/mystical-blogs-carousel-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/mystical-companion/widgets/mystical-counter-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/mystical-companion/widgets/mystical-rooms-carousel-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/mystical-companion/widgets/mystical-testimonial-carousel-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Control_Icon' not found in wp-content/plugins/mystical-companion/controls/mystical-icons-control.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: metabox, editor, elementor
mystical-companion/mystical-companion.php Passed 13 tests
The main PHP file in "Mystical Companion" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
A companion plugin for themes by MysticalThemes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,700 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 121 | 40 | 2,234 |
JavaScript | 3 | 494 | 962 | 2,012 |
PHP | 7 | 337 | 239 | 1,962 |
SVG | 1 | 0 | 0 | 492 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 58 | |
▷ Static methods | 2 | 3.45% |
▷ Public methods | 45 | 77.59% |
▷ Protected methods | 13 | 22.41% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 10 | 76.92% |
▷ Class constants | 3 | 23.08% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendors/owl-carousel/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |