Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼8.86ms] Passed 4 tests
This is a short check of server-side resources used by Invoices Online Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 36.05 ▼9.23 |
Dashboard /wp-admin | 3.59 ▲0.25 | 47.69 ▼12.42 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 47.93 ▲0.92 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 80.10 ▼14.71 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 35.74 ▲2.10 |
Server storage [IO: ▲0.21MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Invoices Online Integration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.34 ▼1.04 | 3.64 ▲1.83 | 38.48 ▼2.51 |
Dashboard /wp-admin | 2,227 ▲35 | 5.84 ▲0.94 | 103.73 ▼14.07 | 69.15 ▲28.55 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.04 ▲0.02 | 40.89 ▲2.61 | 34.08 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 23.02 ▼0.01 | 688.70 ▼63.14 | 69.05 ▲10.72 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.21 ▲0.03 | 98.93 ▲1.15 | 62.24 ▲20.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/invoicesonline/index.php:13
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== invoicesonline ===
)
invoicesonline/index.php 85% from 13 tests
The main PHP file in "Invoices Online Integration" ver. 4.8 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("invoicesonline.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 288 characters long)
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
Everything looks great! No dangerous files found in this plugin2,325 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 397 | 326 | 2,325 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 108.00 |
▷ Minimum class complexity | 100.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.41% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
8 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/favicon-96x96.png | 7.47KB | 3.40KB | ▼ 54.44% |
assets/images/logo.png | 19.50KB | 8.55KB | ▼ 56.13% |
images/logo.png | 19.50KB | 8.55KB | ▼ 56.13% |
images/favicon-16x16.png | 0.66KB | 0.34KB | ▼ 48.89% |
images/favicon-32x32.png | 2.06KB | 1.56KB | ▼ 24.19% |