99% traveledmap-embeded-map

Code Review | TraveledMap Embedded Map

WordPress plugin TraveledMap Embedded Map scored 99% from 54 tests.

About plugin

  • Plugin page: traveledmap-embed...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6.0
  • WordPress version: 5.9.2
  • First release: Jun 21, 2019
  • Latest release: Feb 1, 2021
  • Number of updates: 14
  • Update frequency: every 42.6 days
  • Top authors: traveledmap (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 757 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼294.60ms] Passed 4 tests

A check of server-side resources used by TraveledMap Embedded Map
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.47 ▲0.06
Dashboard /wp-admin3.43 ▲0.0334.00 ▼1.09
Posts /wp-admin/edit.php3.66 ▲0.0241.04 ▲3.32
Add New Post /wp-admin/post-new.php6.90 ▼0.0796.93 ▼1,179.85
Media Library /wp-admin/upload.php3.31 ▲0.0226.39 ▲2.48

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for TraveledMap Embedded Map
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.27 ▼0.416.31 ▲0.392.40 ▼0.62
Dashboard /wp-admin2,895 ▲376.11 ▼0.06118.77 ▼16.02160.88 ▼31.29
Posts /wp-admin/edit.php2,694 ▲33.24 ▼0.0160.59 ▼3.32146.91 ▲5.83
Add New Post /wp-admin/post-new.php1,725 ▲6422.22 ▲5.03434.27 ▼2.15161.10 ▼3.19
Media Library /wp-admin/upload.php1,698 ▲35.52 ▲0.01146.76 ▲3.05193.38 ▼63.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: embedded, map, trip, traveledmap, blog...

traveledmap-embeded-map/plugin.php 85% from 13 tests

This is the main PHP file of "TraveledMap Embedded Map" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 145 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("traveledmap-embeded-map.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin7,307 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON3007,086
JavaScript392789
Sass316182
PHP2135648
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 4.16MB with 2.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/assets/screenshot-2.png387.91KB114.37KB▼ 70.52%
trunk/assets/banner-772x250.png111.56KB58.17KB▼ 47.86%
trunk/assets/screenshot-3.png201.98KB73.17KB▼ 63.78%
assets/screenshot-1.png1,322.05KB381.24KB▼ 71.16%
trunk/assets/screenshot-1.png1,322.05KB381.24KB▼ 71.16%