78% map2app-connector

Code Review | Map2App Connector

WordPress plugin Map2App Connector scored78%from 54 tests.

About plugin

  • Plugin page: map2app-connector
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Jan 19, 2015
  • Latest release: Feb 3, 2015
  • Number of updates: 13
  • Update frequency: every 1.2 days
  • Top authors: alcaponi (92.31%)micheleorsi (15.38%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,392 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▲13.05ms] Passed 4 tests

Analyzing server-side resources used by Map2App Connector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.47 ▼0.46
Dashboard /wp-admin3.42 ▲0.1265.39 ▲19.24
Posts /wp-admin/edit.php3.54 ▲0.1860.74 ▲19.26
Add New Post /wp-admin/post-new.php6.00 ▲0.12128.20 ▲35.67
Media Library /wp-admin/upload.php3.35 ▲0.1253.33 ▲14.15

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables
wp_map2app_mapping
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
map2app_album
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Map2App Connector: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.29 ▼1.021.66 ▼0.2744.90 ▼1.32
Dashboard /wp-admin2,216 ▲274.87 ▼1.07102.80 ▼5.3267.40 ▲27.82
Posts /wp-admin/edit.php2,114 ▲252.03 ▲0.0336.53 ▼1.1633.69 ▲3.64
Add New Post /wp-admin/post-new.php1,539 ▲523.44 ▲0.17703.17 ▼7.8657.99 ▲10.78
Media Library /wp-admin/upload.php1,401 ▲134.25 ▼0.0699.44 ▼11.2771.80 ▲23.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/map2app-connector/map2app.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/map2app-connector/admin.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/map2app-connector/functions/upload_posts.php:130

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (30 tag instead of maximum 10)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === map2app-connector === )
The official readme.txt might help

map2app-connector/map2app.php 92% from 13 tests

This is the main PHP file of "Map2App Connector" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("map2app-connector.php" instead of "map2app.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin892 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6182139651
JavaScript14829159
CSS17160
PO File11222

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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
images/map2app-favicon.png4.66KB1.17KB▼ 74.92%