62% vcat-posts-at-google-maps

Code Review | VCAT EDULABS Posts at Google Maps

WordPress plugin VCAT EDULABS Posts at Google Maps scored62%from 54 tests.

About plugin

  • Plugin page: vcat-posts-at-goo...
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2013
  • Latest release: Sep 24, 2015
  • Number of updates: 23
  • Update frequency: every 29.9 days
  • Top authors: VCATconsulting (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,512 total downloads

Benchmarks

Plugin footprint 64% 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.28MB] [CPU: ▼11.88ms] 75% from 4 tests

A check of server-side resources used by VCAT EDULABS Posts at Google Maps
Please fix the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 541.20ms on /wp-admin/admin.php?page=vcat-options)
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3854.10 ▲14.57
Dashboard /wp-admin3.71 ▲0.4155.35 ▲3.52
Posts /wp-admin/edit.php3.84 ▲0.4854.08 ▲2.87
Add New Post /wp-admin/post-new.php3.56 ▼2.3339.72 ▼59.20
Media Library /wp-admin/upload.php3.63 ▲0.4143.69 ▲5.29
Geo Map Options /wp-admin/admin.php?page=vcat_geo_settings3.58561.16
VCAT EDULABS /wp-admin/admin.php?page=vcat-options3.58541.20

Server storage [IO: ▲2.66MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/vcat-posts-at-google-maps/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 62 new files
Database: 1 new table, 7 new options
New tables
wp_vcat_geo_plugin
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
vcat_db_version
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for VCAT EDULABS Posts at Google Maps
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲17414.50 ▲0.2129.24 ▲27.3342.00 ▼2.62
Dashboard /wp-admin2,241 ▲404.90 ▼0.0299.99 ▼9.6876.25 ▲29.88
Posts /wp-admin/edit.php2,275 ▲1722.21 ▲0.2134.13 ▼3.2340.65 ▲5.42
Add New Post /wp-admin/post-new.php6,437 ▲4,88826.48 ▲3.24985.80 ▲258.8145.94 ▼7.20
Media Library /wp-admin/upload.php1,429 ▲264.26 ▲0.10115.50 ▲0.6896.09 ▲46.15
Geo Map Options /wp-admin/admin.php?page=vcat_geo_settings1,3292.0034.0634.92
VCAT EDULABS /wp-admin/admin.php?page=vcat-options8881.7927.3429.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_vcat_geo_plugin
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • vcat_db_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vcat-options
    • > Deprecated in wp-content/plugins/vcat-posts-at-google-maps/core/sidebar.php+13
    The each() function is deprecated. This message will be suppressed on further calls
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vcat-options
    • > Warning in wp-content/plugins/vcat-posts-at-google-maps/core/sidebar.php+6
    file_get_contents(http://www.vcat.de/unternehmen/aktuelles.html?type=100): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/vcat-posts-at-google-maps/vcat-posts-at-google-maps.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/vcat-posts-at-google-maps/custom/meta.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/vcat-posts-at-google-maps/core/vcat-core.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/vcat-posts-at-google-maps/quickedit/meta.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=vcat_geo_settings
    • > Network (severe)
    wp-content/plugins/vcat-posts-at-google-maps/backend/images/ui-bg_highlight-soft_100_eeeeee_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=vcat_geo_settings
    • > Network (severe)
    wp-content/plugins/vcat-posts-at-google-maps/backend/images/ui-bg_glass_100_f6f6f6_1x400.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

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: geo-coding, edulabs, vcat, geo-location, google-maps...

vcat-posts-at-google-maps/vcat-posts-at-google-maps.php 92% from 13 tests

Analyzing the main PHP file in "VCAT EDULABS Posts at Google Maps" version 1.6.2
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 348 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,937 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PO File35741,0241,461
PHP103013091,176
JavaScript43663175
CSS5287125

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions63
▷ Named functions63100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
30 PNG files occupy 1.92MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vcat-posts-at-google-maps.png327.85KB123.62KB▼ 62.29%
images/vcat-purple-dot.png1.95KB0.86KB▼ 55.98%
images/vcat-orange-dot.png1.16KB0.89KB▼ 23.76%
core/images/social/xing-24x24.png2.10KB1.37KB▼ 34.91%
images/vcat-blue-dot.png1.89KB0.86KB▼ 54.60%