Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼298.65ms] Passed 4 tests
Analyzing server-side resources used by Tracker wp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.31 | 55.11 ▲1.68 |
Dashboard /wp-admin | 3.68 ▲0.27 | 35.90 ▲2.15 |
Posts /wp-admin/edit.php | 3.90 ▲0.26 | 38.81 ▲2.21 |
Add New Post /wp-admin/post-new.php | 7.13 ▲0.16 | 97.34 ▼1,199.98 |
Media Library /wp-admin/upload.php | 3.56 ▲0.27 | 25.84 ▲1.55 |
Configuracion /wp-admin/admin.php?page=tracker-wp/configuracion/apikey.php | 3.53 | 24.52 |
Tracker wp /wp-admin/admin.php?page=tracker-wp/configuracion/welcome.php | 3.53 | 24.62 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: 4 new tables, no new options
New tables |
---|
wp_tkwp_configuration |
wp_tkwp_posiciones |
wp_tkwp_multimedias |
wp_tkwp_maps |
Browser metrics Passed 4 tests
Tracker wp: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,862 ▲118 | 16.63 ▲0.68 | 16.00 ▲9.82 | 2.92 ▲0.56 |
Dashboard /wp-admin | 2,935 ▲81 | 6.01 ▼0.18 | 118.65 ▼15.73 | 155.78 ▼6.76 |
Posts /wp-admin/edit.php | 2,728 ▲37 | 3.25 ▲0.02 | 63.77 ▼0.41 | 141.82 ▲1.94 |
Add New Post /wp-admin/post-new.php | 1,690 ▼35 | 18.43 ▲1.38 | 388.06 ▼94.83 | 159.16 ▲3.02 |
Media Library /wp-admin/upload.php | 1,739 ▲41 | 5.55 ▲0.02 | 137.69 ▼4.06 | 178.52 ▼7.38 |
Configuracion /wp-admin/admin.php?page=tracker-wp/configuracion/apikey.php | 1,043 | 2.42 | 56.77 | 108.83 |
Tracker wp /wp-admin/admin.php?page=tracker-wp/configuracion/welcome.php | 1,037 | 2.56 | 54.21 | 114.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 50% 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 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tracker-wp/configuracion/welcome.php
- > /wp-content/plugins/tracker-wp/edicion/modals/addMultimedia.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/tracker-wp/configuracion/permisos.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function tkwp_obtenerPermisosEdicion() in wp-content/plugins/tracker-wp/configuracion/configuracioncomplete.php:3
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/tracker-wp/includes/tkwp_general.php on line 9
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/tracker-wp/edicion/utils/CargadorMapas.php on line 13
- > PHP Notice
Undefined index: stc in wp-content/plugins/tracker-wp/edicion/edicionmapas.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tracker-wp/includes/tkwp_mainFunctions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/tracker-wp/edicion/edicionmapas.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tracker-wp/includes/tkwp_mainFunctions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/tracker-wp/configuracion/agradecimientos.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/tracker-wp/edicion/utils/CargadorMapas.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: ping, position, maps, google, gpx...
tracker-wp/trackerwp.php 77% from 13 tests
The primary PHP file in "Tracker wp" version 1.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tracker-wp.php" instead of "trackerwp.php")
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,718 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 392 | 312 | 2,007 |
JavaScript | 9 | 151 | 233 | 825 |
CSS | 9 | 112 | 40 | 696 |
HTML | 13 | 2 | 3 | 190 |
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.21 |
Average class complexity | 10.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 76 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 50 | |
▷ Named functions | 50 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
visualizacion/img/marcador3.png | 1.44KB | 0.62KB | ▼ 56.72% |