10% pingeborg

Code Review | pingeb.org

WordPress plugin pingeb.org scored 10% from 54 tests.

About plugin

  • Plugin page: pingeborg
  • Plugin version: 2.0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.2
  • WordPress version: 5.8.1
  • First release: Nov 15, 2012
  • Latest release: Aug 25, 2014
  • Number of updates: 63
  • Update frequency: every 10.3 days
  • Top authors: pingeborg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,460 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5663
    wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▼1.82MB] [CPU: ▼189.52ms] Passed 4 tests

An overview of server-side resources used by pingeb.org
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.96 ▼0.765.92 ▼20.58
Dashboard /wp-admin1.83 ▼1.226.19 ▼40.63
Posts /wp-admin/edit.php1.83 ▼1.287.19 ▼43.41
Add New Post /wp-admin/post-new.php1.83 ▼3.606.78 ▼647.68
Media Library /wp-admin/upload.php1.83 ▼1.176.27 ▼26.35
Pingeborg Tags /wp-admin/admin.php?page=pingeb_tag_admin1.835.27
Settings /wp-admin/admin.php?page=pingeb_twitter_admin1.835.82
Tag Maintenance /wp-admin/admin.php?page=pingeb_admin_tag_maintenance1.836.95
Custom HTML /wp-admin/admin.php?page=pingeb_custom_html1.835.71
Info /wp-admin/admin.php?page=pingeb_info1.835.29

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: 5 new tables, 1 new option
New tables
wp_pingeb_statistik
wp_pingeb_url_type
wp_pingeb_url
wp_pingeb_custom_html
wp_pingeb_tag
New WordPress options
pingeb_db_version

Browser metrics Passed 4 tests

pingeb.org: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,024 ▲42816.97 ▲1.1911.62 ▲4.2248.43 ▼5.35
Dashboard /wp-admin3,062 ▲1286.04 ▲0.06155.21 ▲5.43129.11 ▲9.63
Posts /wp-admin/edit.php2,856 ▲1172.84 ▲0.1670.38 ▼1.54111.01 ▲17.62
Add New Post /wp-admin/post-new.php1,756 ▲7315.68 ▼3.13420.21 ▲41.20142.64 ▲31.10
Media Library /wp-admin/upload.php1,850 ▲435.32 ▲0.29134.45 ▼25.77142.97 ▲19.45
Pingeborg Tags /wp-admin/admin.php?page=pingeb_tag_admin1,3602.5765.75104.43
Settings /wp-admin/admin.php?page=pingeb_twitter_admin1,5192.4865.6886.67
Tag Maintenance /wp-admin/admin.php?page=pingeb_admin_tag_maintenance1,1642.6459.5380.34
Custom HTML /wp-admin/admin.php?page=pingeb_custom_html1,1702.5164.3388.06
Info /wp-admin/admin.php?page=pingeb_info1,2132.4974.4069.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pingeb_common handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 5 tables in the database
    • wp_pingeb_url
    • wp_pingeb_tag
    • wp_pingeb_url_type
    • wp_pingeb_statistik
    • wp_pingeb_custom_html
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • pingeb_db_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pingeb_info
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pingeb_common handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pingeb_info
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pingeb_heatmap handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pingeb_info
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the raphael handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pingeb_info
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the graphael handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pingeb_info
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the raphael_line handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pingeb_info
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the raphael_bar handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pingeb_info
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the raphael_pie handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pingeb_info
    • > User deprecated in wp-includes/functions.php+5211
    register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pingeb_info
    • > User deprecated in wp-includes/functions.php+5211
    wpdb::escape is deprecated since version 3.6.0! Use wpdb::prepare() or esc_sql() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pingeborg/pingeb_admin_tag_maintenance_callbacks.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pingeborg/pingeb_admin_custom_html.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pingeborg/pingeb_admin_custom_html_callbacks.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pingeborg/pingeb_statistics.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pingeborg/pingeb_admin_twitter.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pingeborg/pingeb_admin_tags.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pingeborg/pingeb_widgets.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pingeborg/pingeborg.php:174
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pingeborg/pingeb_links.php:146
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pingeborg/pingeb_info.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=pingeb_tag_admin
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=pingeb_tag_admin 0:0 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    • > GET request to /wp-admin/admin.php?page=pingeb_admin_tag_maintenance
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=pingeb_admin_tag_maintenance 0:0 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    • > GET request to /wp-admin/admin.php?page=pingeb_info
    • > Network (severe)
    http://cdn.mapsmarker.com/wp-content/themes/mapsmarker/inc/images/mapsmarker.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: stickers, timedependent, locationbased, qr, posters...

pingeborg/pingeborg.php Passed 13 tests

The main PHP file in "pingeb.org" ver. 2.0.3.2 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
A plugin that connects the real world with your great content on WordPress using NFC, QR and geofences.

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,773 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP155636382,693
JavaScript10220180979
CSS1132101

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity80.00
▷ Minimum class complexity80.00
▷ Maximum class complexity80.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods1133.33%
▷ Protected methods00.00%
▷ Private methods2266.67%
Functions61
▷ Named functions61100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
20 compressed PNG files occupy 0.57MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/squares/07.png29.17KB27.53KB▼ 5.62%
img/squares/04.png29.12KB27.48KB▼ 5.62%
img/squares/18.png30.10KB28.54KB▼ 5.16%
img/squares/12.png30.46KB28.95KB▼ 4.96%
img/logo.png46.48KB25.88KB▼ 44.32%