84% aweos-google-maps-iframe-load-per-click

Code Review | AWEOS Google Maps iframe load per click

WordPress plugin AWEOS Google Maps iframe load per click scored84%from 54 tests.

About plugin

  • Plugin page: aweos-google-maps...
  • Plugin version: 1.9.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2018
  • Latest release: Oct 12, 2023
  • Number of updates: 45
  • Update frequency: every 43.5 days
  • Top authors: aweos (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

3,000+ active /14,757 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼14.12ms] Passed 4 tests

A check of server-side resources used by AWEOS Google Maps iframe load per click
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.22 ▼4.47
Dashboard /wp-admin3.43 ▲0.0946.45 ▼16.49
Posts /wp-admin/edit.php3.53 ▲0.1843.58 ▼2.33
Add New Post /wp-admin/post-new.php6.12 ▲0.2473.65 ▼29.34
Media Library /wp-admin/upload.php3.37 ▲0.1531.41 ▼6.18

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for AWEOS Google Maps iframe load per click
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲13413.82 ▼0.469.15 ▲7.5443.70 ▼2.05
Dashboard /wp-admin2,208 ▲285.53 ▼0.1684.52 ▼8.0638.06 ▼7.06
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0335.44 ▼5.4535.74 ▲1.61
Add New Post /wp-admin/post-new.php1,548 ▲2217.95 ▼5.53633.66 ▼33.2676.50 ▲22.44
Media Library /wp-admin/upload.php1,416 ▲164.23 ▲0.03101.77 ▼17.4745.09 ▼4.51

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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
Good news, no errors were detected

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'Zend\\Dom\\Exception\\ExceptionInterface' not found in wp-content/plugins/aweos-google-maps-iframe-load-per-click/vendor/zendframework/zend-dom/src/Exception/RuntimeException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Zend\\Dom\\Exception\\ExceptionInterface' not found in wp-content/plugins/aweos-google-maps-iframe-load-per-click/vendor/zendframework/zend-dom/src/Exception/BadMethodCallException.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: The official readme.txt might help

aweos-google-maps-iframe-load-per-click/aweos-google-maps-iframe-load-per-click.php 92% from 13 tests

"AWEOS Google Maps iframe load per click" version 1.9.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,510 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP202868191,114
JSON300108
Markdown345085
PO File2222276
SVG10056
CSS15640
JavaScript12230
HTML1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.54
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods87
▷ Static methods78.05%
▷ Public methods7990.80%
▷ Protected methods78.05%
▷ Private methods11.15%
Functions16
▷ Named functions956.25%
▷ Anonymous functions743.75%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
karte.png3.47KB2.08KB▼ 39.90%