Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.31ms] Passed 4 tests
A check of server-side resources used by Beastthemes Companion
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.47 ▲1.85 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.58 ▲0.18 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.71 ▲3.16 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.15 ▼14.02 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.16 ▲2.76 |
Server storage [IO: ▲6.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
beastthemes_front_page |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Beastthemes Companion
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,775 ▲40 | 14.76 ▲0.51 | 1.75 ▲0.06 | 37.19 ▼4.75 |
Dashboard /wp-admin | 2,203 ▲17 | 5.77 ▲0.84 | 96.12 ▼7.36 | 40.11 ▼2.34 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 2.02 ▼0.03 | 39.13 ▲3.71 | 35.70 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 18.89 ▼4.39 | 589.80 ▼84.30 | 80.19 ▲16.99 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.26 ▲0.12 | 95.56 ▼2.10 | 42.85 ▼0.38 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- beastthemes_front_page
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/beastthemes-companion/admin/includes/controllers/dcode/home-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/beastthemes-companion/admin/includes/controllers/dcode/home-default.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/beastthemes-companion/admin/includes/controllers/yuno/home-default.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/beastthemes-companion/admin/includes/controllers/dcode/class-page-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: drag, beastthemes companion, builder, drop
beastthemes-companion/beastthemes-companion.php 92% from 13 tests
The principal PHP file in "Beastthemes Companion" v. 1.0.14 is loaded by WordPress automatically on each request
It is important to 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected7,074 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 577 | 889 | 4,661 |
CSS | 6 | 347 | 94 | 2,114 |
JavaScript | 10 | 57 | 55 | 299 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 7.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 1 | 2.70% |
Methods | 61 | |
▷ Static methods | 44 | 72.13% |
▷ Public methods | 56 | 91.80% |
▷ Protected methods | 1 | 1.64% |
▷ Private methods | 4 | 6.56% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 2.35MB with 1.84MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dcode/clients/client_1.png | 22.46KB | 4.50KB | ▼ 79.98% |
admin/assets/images/backgrounds/3.png | 495.52KB | 165.79KB | ▼ 66.54% |
assets/images/dcode/clients/client_3.png | 22.67KB | 4.42KB | ▼ 80.49% |
assets/images/dcode/clients/client_4.png | 20.82KB | 3.92KB | ▼ 81.17% |
assets/images/team-bg.png | 11.02KB | 1.83KB | ▼ 83.41% |