89% traveledmap-embeded-map

Code Review | TraveledMap Embedded Map

WordPress plugin TraveledMap Embedded Map scored89%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: 6.3.1
  • 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

20+ active /1,120 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.99ms] Passed 4 tests

An overview of server-side resources used by TraveledMap Embedded Map
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.98 ▲0.49
Dashboard /wp-admin3.31 ▲0.0144.02 ▼5.27
Posts /wp-admin/edit.php3.36 ▲0.0044.62 ▼2.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.63 ▼17.16
Media Library /wp-admin/upload.php3.23 ▲0.0036.17 ▲3.32

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, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for TraveledMap Embedded Map
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.55 ▼0.844.64 ▲2.9537.77 ▼7.50
Dashboard /wp-admin2,209 ▲265.86 ▲0.92101.23 ▼12.0942.41 ▼0.66
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0537.71 ▼1.5632.28 ▼2.13
Add New Post /wp-admin/post-new.php6,182 ▲4,63819.18 ▼3.97934.77 ▲257.2364.88 ▲3.36
Media Library /wp-admin/upload.php1,385 ▼64.21 ▼0.00108.28 ▲5.8947.28 ▼1.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
8 plugin tags: embedded, blog, trip, map, traveledmap...

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

The main PHP file in "TraveledMap Embedded Map" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("traveledmap-embeded-map.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
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

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems 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

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 4.16MB with 2.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png387.91KB114.37KB▼ 70.52%
assets/banner-772x250.png111.56KB58.17KB▼ 47.86%
trunk/assets/screenshot-1.png1,322.05KB381.24KB▼ 71.16%
assets/icon-256x256.png31.10KB11.63KB▼ 62.60%
trunk/assets/screenshot-4.png150.60KB48.56KB▼ 67.75%