Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲5.50MB] [CPU: ▲53.30ms] 75% from 4 tests
This is a short check of server-side resources used by Ultimeter
It is recommended to improve the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.50MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.92 ▲5.46 | 110.20 ▲70.01 |
Dashboard /wp-admin | 8.94 ▲5.64 | 110.10 ▲60.53 |
Posts /wp-admin/edit.php | 8.94 ▲5.59 | 88.22 ▲45.40 |
Add New Post /wp-admin/post-new.php | 11.22 ▲5.34 | 143.97 ▲52.95 |
Media Library /wp-admin/upload.php | 8.94 ▲5.71 | 90.62 ▲54.30 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.94 | 78.97 |
Server storage [IO: ▲7.46MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 448 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
fs_debug_mode |
fs_accounts |
widget_recent-posts |
fs_active_plugins |
widget_ultimeter_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ultimeter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,149 ▲387 | 20.50 ▲6.06 | 5.72 ▲3.93 | 31.58 ▼12.48 |
Dashboard /wp-admin | 2,471 ▲290 | 10.59 ▲4.96 | 230.14 ▲111.85 | 41.48 ▼5.92 |
Posts /wp-admin/edit.php | 2,262 ▲162 | 9.53 ▲7.58 | 94.95 ▲59.21 | 39.76 ▲6.43 |
Add New Post /wp-admin/post-new.php | 1,683 ▲157 | 22.20 ▼1.10 | 517.35 ▼155.09 | 37.27 ▼20.04 |
Media Library /wp-admin/upload.php | 1,631 ▲231 | 12.30 ▲8.12 | 139.10 ▲41.05 | 46.40 ▲2.24 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,184 | 9.16 | 87.27 | 28.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/ultimeter/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-comments
- theysaidso_admin_options
- fs_accounts
- widget_theysaidso_widget
- fs_debug_mode
- can_compress_scripts
- widget_recent-posts
- widget_ultimeter_widget
- fs_active_plugins
- db_upgraded
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)
Even though no errors were found, this is by no means an exhaustive test
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
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_ssl() in wp-content/plugins/ultimeter/admin/partials/enterprise.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ultimeter/admin/class-ultimeter-admin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function upgm_fs() in wp-content/plugins/ultimeter/admin/partials/ultimeter-upgrade-metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/ultimeter/admin/partials/blank-slate.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ultimeter/includes/class-ultimeter-widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ultimeter/integrations/woocommerce/includes/class-ultimeter-woocommerce.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimeter/gutenberg/class-ultimeter-gutenberg-block.php:33
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/ultimeter/includes/class-ultimeter-rest-controller.php:9
- > 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 96% 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: progress, goal, meter, fundraising, progress bar
ultimeter/ultimeter.php 92% from 13 tests
This is the main PHP file of "Ultimeter" version 3.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected90,730 lines of code in 330 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 236 | 12,195 | 19,955 | 52,009 |
CSS | 23 | 929 | 1,048 | 12,904 |
JavaScript | 13 | 969 | 1,347 | 8,338 |
Sass | 19 | 1,543 | 152 | 8,061 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
JSON | 12 | 0 | 0 | 2,742 |
Markdown | 2 | 39 | 0 | 110 |
SVG | 4 | 0 | 1 | 50 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 49.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 131 | |
▷ Abstract classes | 4 | 3.05% |
▷ Concrete classes | 127 | 96.95% |
▷ Final classes | 0 | 0.00% |
Methods | 1,682 | |
▷ Static methods | 263 | 15.64% |
▷ Public methods | 1,277 | 75.92% |
▷ Protected methods | 18 | 1.07% |
▷ Private methods | 387 | 23.01% |
Functions | 138 | |
▷ Named functions | 136 | 98.55% |
▷ Anonymous functions | 2 | 1.45% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 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
27 PNG files occupy 0.50MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/barbasic.png | 4.98KB | 2.55KB | ▼ 48.84% |
admin/assets/images/thermometer2020.png | 6.03KB | 3.17KB | ▼ 47.47% |
integrations/woocommerce/assets/images/woo.png | 4.28KB | 2.51KB | ▼ 41.37% |
admin/assets/images/inf-flip.png | 5.05KB | 2.66KB | ▼ 47.28% |
admin/assets/images/ultimeter.png | 5.80KB | 2.88KB | ▼ 50.42% |