84% auto-maps

Code Review | Auto Maps

WordPress plugin Auto Maps scored84%from 54 tests.

About plugin

  • Plugin page: auto-maps
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Aug 19, 2014
  • Latest release: Sep 23, 2014
  • Number of updates: 4
  • Update frequency: every 8.8 days
  • Top authors: sureshdsk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,286 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.44ms] Passed 4 tests

Analyzing server-side resources used by Auto Maps
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.86 ▲3.58
Dashboard /wp-admin3.31 ▲0.0045.12 ▼6.92
Posts /wp-admin/edit.php3.36 ▲0.0045.75 ▼2.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.26 ▼1.38
Media Library /wp-admin/upload.php3.23 ▲0.0032.42 ▼2.83

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

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

Browser metrics Passed 4 tests

Auto Maps: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲10913.50 ▼1.138.24 ▲6.6440.08 ▲1.85
Dashboard /wp-admin2,195 ▲155.64 ▼0.0389.50 ▲1.1436.63 ▼8.03
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0339.90 ▲2.1434.94 ▼0.04
Add New Post /wp-admin/post-new.php1,526 ▼923.30 ▲4.89672.95 ▲70.6054.09 ▼20.34
Media Library /wp-admin/upload.php1,400 ▲64.16 ▼0.0496.41 ▲0.2539.73 ▼0.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-maps/auto-maps.php:19

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
You can take inspiration from this readme.txt

auto-maps/auto-maps.php Passed 13 tests

The main PHP script in "Auto Maps" version 1.0.0 is automatically included on every request by WordPress
47 characters long description:
Turn tag into Google map embeds automatically.

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
Everything looks great! No dangerous files found in this plugin313 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
XML760287
JavaScript11021
PHP16105

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png10.38KB6.83KB▼ 34.21%
screenshot-2.png45.54KB22.69KB▼ 50.17%