90% embed-webmap

Code Review | Embed Webmap

WordPress plugin Embed Webmap scored90%from 54 tests.

About plugin

  • Plugin page: embed-webmap
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.0
  • WordPress version: 6.3.1
  • First release: Aug 8, 2014
  • Latest release: Jan 28, 2019
  • Number of updates: 27
  • Update frequency: every 60.5 days
  • Top authors: gavinr (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active /6,747 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.02MB] [CPU: ▼3.16ms] Passed 4 tests

Analyzing server-side resources used by Embed Webmap
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.69 ▼3.58
Dashboard /wp-admin3.33 ▲0.0246.81 ▼8.19
Posts /wp-admin/edit.php3.38 ▲0.0253.17 ▲2.98
Add New Post /wp-admin/post-new.php5.91 ▲0.02103.64 ▲0.39
Media Library /wp-admin/upload.php3.25 ▲0.0237.61 ▼1.25

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Embed Webmap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.65 ▼0.621.88 ▼0.1348.75 ▼1.60
Dashboard /wp-admin2,206 ▲174.85 ▼0.05123.06 ▲3.0447.47 ▲2.89
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0642.77 ▼0.4532.00 ▼2.95
Add New Post /wp-admin/post-new.php1,372 ▼14816.65 ▼6.38590.81 ▼144.0549.98 ▼10.28
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.02118.18 ▼10.6550.59 ▼1.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: arcgis, maps, webmap, gis

embed-webmap/embed-webmap.php 92% from 13 tests

This is the main PHP file of "Embed Webmap" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected97 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33310497

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin