89% atec-web-map-service

Code Review | atec web-map-service

WordPress plugin atec web-map-service scored89%from 54 tests.

About plugin

  • Plugin page: atec-web-map-service
  • Plugin version: 1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2019
  • Latest release: Jul 21, 2023
  • Number of updates: 12
  • Update frequency: every 136.9 days
  • Top authors: docjojo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /704 total downloads


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.02MB] [CPU: ▼7.61ms] Passed 4 tests

A check of server-side resources used by atec web-map-service
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.76 ▼9.05
Dashboard /wp-admin3.33 ▲0.0256.14 ▼1.46
Posts /wp-admin/edit.php3.38 ▲0.0253.02 ▲2.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.60 ▼11.67
Media Library /wp-admin/upload.php3.25 ▲0.0238.34 ▼8.26
atec WMS /wp-admin/options-general.php?page=atec_wms3.2127.84

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by atec web-map-service
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3314.50 ▼0.062.37 ▲0.3547.11 ▲4.33
Dashboard /wp-admin2,225 ▲184.89 ▼0.06100.89 ▼12.5436.38 ▼3.03
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0437.97 ▼0.2936.25 ▲4.13
Add New Post /wp-admin/post-new.php1,548 ▲323.05 ▼0.08633.34 ▼52.3761.93 ▼4.74
Media Library /wp-admin/upload.php1,401 ▲14.19 ▼0.03101.12 ▼31.4045.20 ▼15.22
atec WMS /wp-admin/options-general.php?page=atec_wms8372.0226.5533.93

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: privacy, web map

atec-web-map-service/atec_wms.php 85% from 13 tests

The principal PHP file in "atec web-map-service" v. 1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("atec-web-map-service.php" instead of "atec_wms.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

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
No dangerous file extensions were detected66 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/favicon-96x96.png12.95KB4.84KB▼ 62.58%