Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.29ms] Passed 4 tests
An overview of server-side resources used by Kotobee Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.80 ▲1.07 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.56 ▼2.20 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.58 ▼5.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 107.88 ▲4.69 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.35 ▼2.62 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_kotobee_integration |
New WordPress options |
---|
theysaidso_admin_options |
kotobee_integration_sendEmail |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
kotobee_integration_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Kotobee Integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 13.21 ▼1.38 | 2.04 ▲0.24 | 37.79 ▼11.12 |
Dashboard /wp-admin | 2,229 ▲44 | 4.94 ▼0.92 | 111.63 ▲1.73 | 74.94 ▲27.29 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.02 ▲0.04 | 40.45 ▼7.83 | 37.62 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.15 ▲5.55 | 707.76 ▲8.15 | 50.31 ▼13.15 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.28 ▼0.02 | 97.32 ▼57.61 | 74.47 ▲18.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 1 table in the database
- wp_kotobee_integration
- This plugin does not fully uninstall, leaving 8 options in the database
- kotobee_integration_sendEmail
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- kotobee_integration_db_version
- widget_theysaidso_widget
Smoke tests 50% 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 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 fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/kotobee/admin/content/memberful-memberfulProduct-intro.php
- > /wp-content/plugins/kotobee/admin/content/memberful-memberfulPlan-intro.php
- > /wp-content/plugins/kotobee/admin/metabox-html.php
- > /wp-content/plugins/kotobee/admin/content/woocommerce-wooProduct-intro.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'KotobeeIntegration' not found in wp-content/plugins/kotobee/classes/KotobeeWoocommerceIntegration.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kotobee/admin/global-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'KotobeeMemberfulIntegration' not found in wp-content/plugins/kotobee/admin/settings/memberful.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kotobee/kotobee.php:31
- > PHP Fatal error
Uncaught Error: Class 'KotobeeIntegration' not found in wp-content/plugins/kotobee/classes/KotobeeMemberfulIntegration.php:3
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: memberful, sell, woocommerce, ebooks, publishing
kotobee/kotobee.php 85% from 13 tests
The main PHP script in "Kotobee Integration" version 1.5.5 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 431 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin2,337 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 241 | 288 | 2,009 |
JavaScript | 1 | 20 | 67 | 187 |
PO File | 1 | 60 | 75 | 141 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 62.50 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 1 | 1.18% |
▷ Public methods | 43 | 50.59% |
▷ Protected methods | 26 | 30.59% |
▷ Private methods | 16 | 18.82% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/memberful.png | 13.48KB | 4.09KB | ▼ 69.64% |
images/woocommerce.png | 8.45KB | 4.23KB | ▼ 49.90% |