Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.51MB] [CPU: ▼15.25ms] Passed 4 tests
Analyzing server-side resources used by JasperReports IO
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.88 ▲0.98 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.01 ▼2.72 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 47.95 ▼1.57 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.54 | 37.94 ▼57.67 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.75 ▲1.30 |
JasperReports IO /wp-admin/options-general.php?page=jrio-settings-admin | 3.36 | 30.84 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_jrio_sessions |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
jrio_db_version |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
JasperReports IO: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.76 ▲0.18 | 1.99 ▲0.31 | 43.15 ▲2.26 |
Dashboard /wp-admin | 2,210 ▲18 | 4.88 ▼0.11 | 108.20 ▲3.10 | 42.65 ▼0.31 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 39.89 ▼4.41 | 34.85 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.69 ▼0.68 | 631.44 ▲29.93 | 49.63 ▼13.59 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▲0.00 | 93.64 ▼1.95 | 40.15 ▼3.23 |
JasperReports IO /wp-admin/options-general.php?page=jrio-settings-admin | 781 | 2.05 | 26.20 | 25.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_jrio_sessions
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- jrio_db_version
- widget_recent-posts
- widget_recent-comments
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
Even though no errors were found, this is by no means 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 items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jasperreports-io/jrio-rest.php:306
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/jasperreports-io/jrio-options.php:161
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jasperreports-io/jrio-shortcodes.php:195
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jasperreports-io/jrio.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jasperreports-io/jrio-session.php:141
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in jasperreports-io/assets to your readme.txt
jasperreports-io/jrio.php 85% from 13 tests
"JasperReports IO" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("jasperreports-io.php" instead of "jrio.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)
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
No dangerous file extensions were detected2,079 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 230 | 193 | 1,154 |
JavaScript | 5 | 129 | 4 | 813 |
CSS | 4 | 18 | 0 | 105 |
HTML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
viewer/expand.gray.png | 0.75KB | 0.55KB | ▼ 27.14% |
viewer/close.white.png | 0.31KB | 0.25KB | ▼ 19.06% |
viewer/close.gray.png | 0.50KB | 0.25KB | ▼ 49.41% |
viewer/expand.white.png | 0.49KB | 0.55KB | 0.00% |