78% tracker-wp

Code Review | Tracker wp

WordPress plugin Tracker wp scored 78% from 54 tests.

About plugin

  • Plugin page: tracker-wp
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.2-5.4.2
  • WordPress version: 6.3.1
  • First release: Aug 24, 2020
  • Latest release: Aug 25, 2020
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: allcodewp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 398 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.75ms] Passed 4 tests

Server-side resources used by Tracker wp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.18 ▼3.41
Dashboard /wp-admin3.36 ▲0.0649.24 ▲1.00
Posts /wp-admin/edit.php3.42 ▲0.0647.38 ▲0.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.19 ▼4.68
Media Library /wp-admin/upload.php3.29 ▲0.0634.26 ▲2.77
Configuracion /wp-admin/admin.php?page=tracker-wp/configuracion/apikey.php3.2833.41
Tracker wp /wp-admin/admin.php?page=tracker-wp/configuracion/welcome.php3.2832.76

Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 63 new files
Database: 4 new tables, 6 new options
New tables
wp_tkwp_configuration
wp_tkwp_posiciones
wp_tkwp_maps
wp_tkwp_multimedias
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tracker wp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲15014.06 ▲1.0521.95 ▲20.0139.54 ▼4.30
Dashboard /wp-admin2,242 ▲504.87 ▼0.06106.41 ▲0.5940.61 ▼5.09
Posts /wp-admin/edit.php2,125 ▲362.00 ▼0.0242.72 ▲7.1435.01 ▲0.02
Add New Post /wp-admin/post-new.php1,536 ▲1617.43 ▼5.75602.21 ▼105.3060.43 ▼7.75
Media Library /wp-admin/upload.php1,422 ▲314.21 ▼0.0997.08 ▼8.2639.54 ▼4.65
Configuracion /wp-admin/admin.php?page=tracker-wp/configuracion/apikey.php8122.0624.8126.08
Tracker wp /wp-admin/admin.php?page=tracker-wp/configuracion/welcome.php8052.0623.9927.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tracker-wp/configuracion/welcome.php
    • > /wp-content/plugins/tracker-wp/edicion/modals/addMultimedia.php
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/tracker-wp/configuracion/apikey.php:8
    • > 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 a member function get_results() on null in wp-content/plugins/tracker-wp/edicion/utils/CargadorMapas.php:22
    • > 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 Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tracker-wp/includes/tkwp_mainFunctions.php:3
    • > PHP Notice
      Undefined index: MAPA in wp-content/plugins/tracker-wp/edicion/modals/addPosition.php on line 20
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/tracker-wp/edicion/utils/CargadorMapas.php on line 13
    • > 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 undefined function add_shortcode() in wp-content/plugins/tracker-wp/includes/tkwp_services.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tracker-wp/includes/tkwp_mainFunctions.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: gpx, position, google maps, google, kml...

tracker-wp/trackerwp.php 77% from 13 tests

Analyzing the main PHP file in "Tracker wp" version 1.0.3
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tracker-wp.php" instead of "trackerwp.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,718 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
PHP263923122,007
JavaScript9151233825
CSS911240696
HTML1323190

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.22
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods76
▷ Static methods00.00%
▷ Public methods76100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions50
▷ Named functions50100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
visualizacion/img/marcador3.png1.44KB0.62KB▼ 56.72%