Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.76ms] Passed 4 tests
This is a short check of server-side resources used by zeStatix
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.75 ▼6.68 |
Dashboard /wp-admin | 3.45 ▲0.15 | 45.77 ▼0.98 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 48.72 ▲0.11 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 97.70 ▲0.50 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 39.23 ▲4.69 |
zeStatix /wp-admin/plugins.php?page=zestatix | 3.42 | 35.54 |
Server storage [IO: ▲0.55MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: 6 new tables, 8 new options
New tables |
---|
wp_zestatix_url |
wp_zestatix_loaded |
wp_zestatix_user |
wp_zestatix_url_tracking |
wp_zestatix_event |
wp_zestatix_element |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
zestatix_toggle |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
zestatix_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by zeStatix
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.74 ▼0.64 | 1.56 ▼0.66 | 37.89 ▼9.64 |
Dashboard /wp-admin | 2,207 ▲22 | 4.79 ▼0.04 | 111.06 ▼6.51 | 43.70 ▲1.61 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▼0.01 | 39.75 ▲4.08 | 35.97 ▲2.76 |
Add New Post /wp-admin/post-new.php | 1,537 ▲16 | 23.32 ▲0.18 | 589.20 ▼63.33 | 46.32 ▼9.65 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.20 ▼0.07 | 98.75 ▼2.96 | 42.16 ▼1.93 |
zeStatix /wp-admin/plugins.php?page=zestatix | 1,719 | 1.94 | 35.66 | 30.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- 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 everything seems fine, this is not 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 items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/zestatix/includes/table_example.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/zestatix/includes/settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/zestatix/includes/db_upgrade.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/zestatix/includes/html_settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/zestatix/includes/select.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: counter, statistics, click, track, tracking
zestatix/zestatix.php Passed 13 tests
The principal PHP file in "zeStatix" v. 1.1.0.2 is loaded by WordPress automatically on each request
59 characters long description:
Click statistics for any selected element of the site page.
Code Analysis Passed 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
No dangerous file extensions were detected3,719 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 742 | 203 | 3,469 |
PO File | 1 | 111 | 128 | 250 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 16 | |
▷ Static methods | 16 | 100.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.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
2 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 4.91KB | 4.73KB | ▼ 3.70% |
img/toggle.png | 53.35KB | 14.65KB | ▼ 72.54% |