Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/integrai/admin/wc-config/class-wc-integration-integrai-settings-integration.php+8
require_once(wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.75ms] Passed 4 tests
Analyzing server-side resources used by Integrai
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.13 ▲1.51 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.28 ▼5.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.41 ▲1.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.24 ▼8.39 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.76 ▲2.50 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Integrai: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.19 | 1.84 ▼0.01 | 44.06 ▲0.15 |
Dashboard /wp-admin | 2,206 ▲21 | 4.87 ▼0.00 | 111.58 ▼5.46 | 38.90 ▼7.95 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.03 | 39.11 ▲2.72 | 34.82 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.54 ▼5.46 | 620.42 ▼50.66 | 49.88 ▼0.29 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.16 ▼0.03 | 94.15 ▼9.11 | 41.23 ▼0.65 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Almost there! Just fix the following items
- 132× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant INTEGRAI__PLUGIN_DIR - assumed 'INTEGRAI__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/integrai/includes/class-integrai-activator.php on line 6
- > PHP Warning
include_once(): Failed opening 'INTEGRAI__PLUGIN_DIRincludes/class-integrai-helpers.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/integrai/includes/controller/class-integrai-controller-config.php on line 4
- > PHP Warning
Use of undefined constant INTEGRAI__PLUGIN_DIR - assumed 'INTEGRAI__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/integrai/includes/controller/class-integrai-controller-pix.php on line 2
- > PHP Warning
Use of undefined constant INTEGRAI__PLUGIN_DIR - assumed 'INTEGRAI__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/integrai/includes/class-integrai-activator.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/integrai/includes/controller/class-integrai-controller-pix.php:6
- > PHP Warning
Use of undefined constant INTEGRAI__PLUGIN_DIR - assumed 'INTEGRAI__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/integrai/includes/model/class-integrai-model-events.php on line 3
- > PHP Warning
include_once(): Failed opening 'INTEGRAI__PLUGIN_DIRincludes/class-integrai-helpers.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/integrai/includes/controller/class-integrai-controller-pix.php on line 3
- > PHP Warning
include_once(INTEGRAI__PLUGIN_DIRincludes/class-integrai-helpers.php): failed to open stream: No such file or directory in wp-content/plugins/integrai/includes/model/class-integrai-model-helper.php on line 3
- > PHP Warning
include_once(INTEGRAI__PLUGIN_DIRincludes/class-integrai-api.php): failed to open stream: No such file or directory in wp-content/plugins/integrai/includes/controller/class-integrai-controller-boleto.php on line 2
- > PHP Warning
include_once(): Failed opening 'INTEGRAI__PLUGIN_DIRpublic/class-integrai-payment-method.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/integrai/public/class-integrai-payment-method-boleto.php on line 3
- > PHP Warning
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 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #1 in integrai/assets to your readme.txt
- Donate link: Invalid url: "-"
integrai/integrai.php 92% from 13 tests
The primary PHP file in "Integrai" version 1.0.23 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.6" instead of "5.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,260 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 892 | 208 | 3,259 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 13.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 245 | |
▷ Static methods | 6 | 2.45% |
▷ Public methods | 183 | 74.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 62 | 25.31% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 2 | 12.50% |
▷ Class constants | 14 | 87.50% |
▷ Public constants | 14 | 100.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
5 PNG files occupy 0.76MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/icon-256x256.png | 20.66KB | 6.70KB | ▼ 67.57% |
.wordpress-org/icon-128x128.png | 11.08KB | 3.63KB | ▼ 67.22% |
.wordpress-org/screenshot-1.png | 113.70KB | 32.87KB | ▼ 71.09% |
.wordpress-org/banner-1544x500.png | 466.78KB | 222.85KB | ▼ 52.26% |
.wordpress-org/banner-772x250.png | 169.42KB | 70.61KB | ▼ 58.32% |