Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.18MB] [CPU: ▼48.74ms] Passed 4 tests
Analyzing server-side resources used by Finteza Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▼0.66 | 22.23 ▼23.50 |
Dashboard /wp-admin | 2.85 ▼0.50 | 17.71 ▼46.25 |
Posts /wp-admin/edit.php | 2.85 ▼0.51 | 20.06 ▼30.92 |
Add New Post /wp-admin/post-new.php | 2.85 ▼3.04 | 17.13 ▼94.29 |
Media Library /wp-admin/upload.php | 2.85 ▼0.38 | 19.16 ▼17.19 |
Finteza Analytics /wp-admin/options-general.php?page=finteza_settings | 2.85 | 17.89 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Finteza Analytics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.47 ▼0.16 | 1.83 ▲0.14 | 42.11 ▲3.79 |
Dashboard /wp-admin | 2,211 ▲22 | 5.85 ▲0.88 | 96.01 ▼20.73 | 36.43 ▼9.47 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▲0.04 | 38.74 ▼0.40 | 36.91 ▲3.22 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.22 ▲5.72 | 623.82 ▲28.29 | 51.21 ▲2.48 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.26 ▲0.09 | 107.85 ▲11.95 | 46.04 ▲5.70 |
Finteza Analytics /wp-admin/options-general.php?page=finteza_settings | 1,101 | 2.04 | 26.57 | 33.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/finteza-analytics/finteza-analytics.php+55
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=finteza_settings
- > Notice in wp-content/plugins/finteza-analytics/inc/input-settings.php+8
Trying to access array offset on value of type bool
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/finteza-analytics/finteza-analytics.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/finteza-analytics/tr/main.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
finteza-analytics/finteza-analytics.php 92% from 13 tests
Analyzing the main PHP file in "Finteza Analytics" version 1.3
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,573 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 164 | 244 | 736 |
PO File | 3 | 141 | 150 | 626 |
JavaScript | 2 | 18 | 17 | 117 |
CSS | 1 | 12 | 1 | 77 |
HTML | 1 | 0 | 0 | 10 |
SVG | 3 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 24 | |
▷ Static methods | 7 | 29.17% |
▷ Public methods | 17 | 70.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 29.17% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 11 | 78.57% |
▷ Class constants | 3 | 21.43% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin