Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/izanai/src/class/izanai_SNS_connect_control.class.php+15
Uncaught ArgumentCountError: Too few arguments to function izanai_SNS_connect_control::__construct(), 0 passed in wp-content/plugins/izanai/src/class/izanai_SNS_connect_view.class.php on line 20 and exactly 1 expected in wp-content/plugins/izanai/src/class/izanai_SNS_connect_control.class.php:15
Stack trace:
#0 wp-content/plugins/izanai/src/class/izanai_SNS_connect_view.class.php(20): izanai_SNS_connect_control->__construct()
#1 wp-content/plugins/izanai/izanai.php(51): izanai_SNS_connect_view->__construct()
#2 wp-content/plugins/izanai/izanai.php(56): izanai_main->__construct()
#3 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#4 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.78ms] Passed 4 tests
This is a short check of server-side resources used by izanai
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.20 ▼3.29 |
Dashboard /wp-admin | 3.31 ▲0.00 | 56.36 ▲0.06 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.82 ▼0.76 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.32 ▼19.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.11 ▼3.42 |
Server storage [IO: ▲0.49MB] [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: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by izanai
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.11 | 1.76 ▲0.14 | 42.62 ▲2.04 |
Dashboard /wp-admin | 2,195 ▲15 | 5.54 ▲0.01 | 85.54 ▼6.34 | 37.48 ▼4.58 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.05 | 34.88 ▼10.54 | 32.86 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.09 ▼5.04 | 644.52 ▼2.37 | 74.72 ▼3.21 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.25 ▲0.07 | 95.45 ▼22.90 | 45.04 ▼3.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/user.php): failed to open stream: No such file or directory in wp-content/plugins/izanai/izanai.php on line 20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/izanai/izanai.php on line 20
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/user.php' (include_path='.:/usr/share/php') in wp-content/plugins/izanai/izanai.php on line 20
- > PHP Warning
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
izanai/izanai.php 92% from 13 tests
"izanai" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/izanai/src/vender/facebook/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 775 | 1,118 | 4,011 |
PO File | 1 | 102 | 124 | 230 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 31.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 427 | |
▷ Static methods | 5 | 1.17% |
▷ Public methods | 379 | 88.76% |
▷ Protected methods | 42 | 9.84% |
▷ Private methods | 6 | 1.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.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
There are no PNG files in this plugin