84% simple-map-no-api

Code Review | Simple Map No Api

WordPress plugin Simple Map No Api scored84%from 54 tests.

About plugin

  • Plugin page: simple-map-no-api
  • Plugin version: 1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: Sep 5, 2023
  • Number of updates: 17
  • Update frequency: every 83.0 days
  • Top authors: shaonback2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /6,152 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
Installer ran successfully

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

This is a short check of server-side resources used by Simple Map No Api
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.78 ▼1.58
Dashboard /wp-admin3.31 ▲0.0144.11 ▼9.60
Posts /wp-admin/edit.php3.36 ▲0.0148.04 ▲1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.27 ▼15.41
Media Library /wp-admin/upload.php3.24 ▲0.0137.29 ▲0.11

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Map No Api
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.17 ▼0.452.10 ▲0.3544.05 ▲1.40
Dashboard /wp-admin2,211 ▲345.47 ▼0.0783.34 ▼4.0538.85 ▼1.67
Posts /wp-admin/edit.php2,113 ▲131.98 ▲0.0438.89 ▲4.9736.14 ▼4.63
Add New Post /wp-admin/post-new.php1,539 ▲1122.86 ▼0.28666.28 ▼8.1251.66 ▼9.24
Media Library /wp-admin/upload.php1,413 ▲104.23 ▼0.0396.97 ▲0.5542.86 ▼2.25

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-map-no-api/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: google map no api, google map api, responsive map, simple map, google map

simple-map-no-api/index.php 92% from 13 tests

The primary PHP file in "Simple Map No Api" version 1.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-map-no-api.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected151 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1913151

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in 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 Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin