Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.21ms] Passed 4 tests
Analyzing server-side resources used by Mesmerize Companion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.51 ▼3.04 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.34 ▼4.88 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.59 ▲5.20 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.06 ▼15.45 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.04 ▼1.45 |
Server storage [IO: ▲2.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 156 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Mesmerize Companion: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.27 ▼0.01 | 1.52 ▼0.14 | 37.25 ▼6.62 |
Dashboard /wp-admin | 2,195 ▲14 | 5.62 ▼0.09 | 84.34 ▼33.62 | 36.97 ▼9.39 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 38.98 ▲3.37 | 36.56 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.10 ▼1.81 | 690.85 ▼1.22 | 53.14 ▼7.61 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.18 ▼0.02 | 100.52 ▲1.86 | 43.70 ▼0.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mesmerize-companion/theme-data/mesmerize/integrations/index.php
- > /wp-content/plugins/mesmerize-companion/theme-data/mesmerize/integrations/demo-imports/integration.php
- 37× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/mesmerize-companion/src/Customizer/BaseControl.php:6
- > PHP Fatal error
Uncaught Error: Class 'Mesmerize\\Companion_Plugin' not found in wp-content/plugins/mesmerize-companion/theme-data/mesmerize/integrations/demo-imports/views/ocdi-installer.php:6
- > PHP Fatal error
Uncaught Error: Class 'Mesmerize\\Customizer\\BaseSetting' not found in wp-content/plugins/mesmerize-companion/src/Customizer/Settings/ObjectSetting.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mesmerize\\Customizer\\BaseSetting' not found in wp-content/plugins/mesmerize-companion/src/Customizer/Settings/ContentSetting.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mesmerize-companion/theme-data/mesmerize/integrations/demo-imports/views/demo-install-popup.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mesmerize-companion/support/wp-5.8.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mesmerize-companion/theme-data/mesmerize/integrations/demo-imports/views/pro-only-popup.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mesmerize\\Customizer\\Controls\\RowsListControl' not found in wp-content/plugins/mesmerize-companion/src/Customizer/Controls/ContentSectionsListControl.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function OCDI\\wp_enqueue_script() in wp-content/plugins/mesmerize-companion/theme-data/mesmerize/integrations/demo-imports/views/demo-list.php:14
- > PHP Fatal error
Uncaught Error: Class 'Mesmerize\\Customizer\\BasePanel' not found in wp-content/plugins/mesmerize-companion/src/Customizer/Panels/HeaderPanel.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
4 plugin tags: drop, builder, drag, mesmerize companion
mesmerize-companion/mesmerize-companion.php Passed 13 tests
The primary PHP file in "Mesmerize Companion" version 1.6.147 is used by WordPress to initiate all plugin functionality
100 characters long description:
The Mesmerize Companion plugin adds drag and drop page builder functionality to the Mesmerize theme.
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
No dangerous file extensions were detected31,007 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 36 | 3,303 | 1,058 | 15,361 |
PHP | 61 | 1,720 | 297 | 10,333 |
CSS | 14 | 997 | 256 | 5,236 |
HTML | 1 | 0 | 0 | 76 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 200.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 275 | |
▷ Static methods | 87 | 31.64% |
▷ Public methods | 255 | 92.73% |
▷ Protected methods | 9 | 3.27% |
▷ Private methods | 11 | 4.00% |
Functions | 103 | |
▷ Named functions | 46 | 44.66% |
▷ Anonymous functions | 57 | 55.34% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cog-white.png | 0.46KB | 0.41KB | ▼ 11.68% |
assets/images/swap.png | 0.33KB | 0.38KB | 0.00% |
assets/images/slash.png | 0.21KB | 0.12KB | ▼ 43.13% |
assets/images/toggle-menu.png | 0.18KB | 0.10KB | ▼ 41.76% |
assets/images/trash.png | 0.29KB | 0.31KB | 0.00% |