68% webby-maps

Code Review | Webby Maps

WordPress plugin Webby Maps scored 68% from 54 tests.

About plugin

  • Plugin page: webby-maps
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Apr 29, 2022
  • Latest release: Apr 29, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: sasikirono (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 187 total downloads

Benchmarks

Plugin footprint 65% 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.20MB] [CPU: ▼3.98ms] Passed 4 tests

Server-side resources used by Webby Maps
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.57 ▼3.75
Dashboard /wp-admin3.58 ▲0.2845.89 ▼4.39
Posts /wp-admin/edit.php3.63 ▲0.2750.69 ▼6.68
Add New Post /wp-admin/post-new.php6.10 ▲0.2189.82 ▼1.10
Media Library /wp-admin/upload.php3.44 ▲0.2136.74 ▲1.66
All Maps /wp-admin/admin.php?page=webby-maps3.4246.57
Create New /wp-admin/admin.php?page=webby-maps-add3.4234.98

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 31 new files
Database: 1 new table, 6 new options
New tables
wp_webbymaps_maps
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Webby Maps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.121.78 ▼0.0443.54 ▼3.43
Dashboard /wp-admin2,229 ▲444.88 ▼0.98107.42 ▲4.9242.54 ▼1.46
Posts /wp-admin/edit.php2,115 ▲262.01 ▼0.0239.88 ▲3.6733.97 ▲0.57
Add New Post /wp-admin/post-new.php1,552 ▲1623.05 ▼0.23579.77 ▼99.3247.46 ▼15.78
Media Library /wp-admin/upload.php1,411 ▲234.30 ▲0.0396.56 ▲3.0040.24 ▼0.36
All Maps /wp-admin/admin.php?page=webby-maps9412.8952.3766.86
Create New /wp-admin/admin.php?page=webby-maps-add1,1994.15132.0258.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_webbymaps_maps
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WebbyMaps\\Admin\\is_admin() in wp-content/plugins/webby-maps/src/Admin/Admin.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=webby-maps-add
    • > Network (severe)
    https://fonts.googleapis.com/css?family=Segoe%20UI:400,700,400italic,700italic&subset=latin - Failed to load resource: the server responded with a status of 400 ()

Optimizations

Plugin configuration 93% 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
3 plugin tags: unlimited, free, maps

webby-maps/main.php 85% from 13 tests

The principal PHP file in "Webby Maps" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 156 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webby-maps.php" instead of "main.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
Everything looks great! No dangerous files found in this plugin1,170 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP131791111,096
SVG10145
JavaScript5313426
CSS307763

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.42
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods79
▷ Static methods3240.51%
▷ Public methods4253.16%
▷ Protected methods3443.04%
▷ Private methods33.80%
Functions19
▷ Named functions526.32%
▷ Anonymous functions1473.68%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin