68% endomondowp

Code Review | EndomondoWP

WordPress plugin EndomondoWP scored68%from 54 tests.

About plugin

  • Plugin page: endomondowp
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-4.7.2
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Mar 4, 2017
  • Number of updates: 35
  • Update frequency: every 34.9 days
  • Top authors: Odyno (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,878 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.41ms] Passed 4 tests

A check of server-side resources used by EndomondoWP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.27 ▲0.88
Dashboard /wp-admin3.37 ▲0.0751.14 ▲3.07
Posts /wp-admin/edit.php3.49 ▲0.1347.60 ▼1.49
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.31 ▼12.10
Media Library /wp-admin/upload.php3.30 ▲0.0639.86 ▲4.37
EndomondoWP /wp-admin/options-general.php?page=EndomondoWPPreference3.3033.15

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 9 new options
New WordPress options
ewp_enabled_analityc
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
ewp_ui
ewp_show_signe

Browser metrics Passed 4 tests

This is an overview of browser requirements for EndomondoWP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,999 ▲23813.68 ▼0.671.75 ▲0.1344.54 ▲0.66
Dashboard /wp-admin2,405 ▲2255.28 ▼0.37101.93 ▲12.2839.15 ▼4.67
Posts /wp-admin/edit.php2,311 ▲2112.53 ▲0.5753.37 ▲12.9138.36 ▲0.84
Add New Post /wp-admin/post-new.php1,775 ▲24922.92 ▼0.10677.28 ▼1.8949.81 ▲0.29
Media Library /wp-admin/upload.php1,600 ▲2064.87 ▲0.60124.53 ▲23.6549.67 ▲3.90
EndomondoWP /wp-admin/options-general.php?page=EndomondoWPPreference1,5252.5345.6347.57

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
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/endomondowp/install/ewp-life-cycle.php+41
    Use of undefined constant EWP_ANALYTICS - assumed 'EWP_ANALYTICS' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • ewp_enabled_analityc
    • can_compress_scripts
    • 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 shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/endomondowp/admin/ewp-mgt.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/endomondowp/include/ewp-shortcode.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/endomondowp/install/ewp-life-cycle.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/endomondowp/include/ewp-media-buttom.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/endomondowp/endomondowp.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=EndomondoWPPreference
    • > Network (severe)
    wp-content/plugins/endomondowp/admin/assets/assets/images/logo_small.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=EndomondoWPPreference
    • > Network (severe)
    wp-content/plugins/endomondowp/admin/assets/assets/images/code.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=EndomondoWPPreference
    • > Network (severe)
    wp-content/plugins/endomondowp/admin/assets/assets/images/bug.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=EndomondoWPPreference
    • > Network (severe)
    wp-content/plugins/endomondowp/admin/assets/assets/images/star.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: wellness, gps, embedding, fitness, sport...

endomondowp/endomondowp.php 92% from 13 tests

"EndomondoWP" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 299 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,239 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP9162158582
JavaScript2143249
CoffeeScript1416164
LESS1130106
CSS320100
SVG10038

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.94MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/code.png0.54KB0.50KB▼ 6.75%
admin/assets/images/star.png0.61KB0.42KB▼ 32.06%
admin/assets/images/challenge_p.png33.71KB12.47KB▼ 63.01%
admin/assets/images/logo.png10.41KB4.20KB▼ 59.67%
admin/assets/images/workout-list_p.png45.68KB16.05KB▼ 64.86%