90% vanilla-adaptive-maps

Code Review | Vanilla Adaptive Maps

WordPress plugin Vanilla Adaptive Maps scored90%from 54 tests.

About plugin

  • Plugin page: vanilla-adaptive-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3
  • WordPress version: 6.3.1
  • First release: Sep 22, 2015
  • Latest release: Sep 22, 2015
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: jcdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,583 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Vanilla Adaptive Maps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.13 ▲2.78
Dashboard /wp-admin3.32 ▲0.0147.03 ▼1.88
Posts /wp-admin/edit.php3.37 ▲0.0155.18 ▲10.38
Add New Post /wp-admin/post-new.php5.90 ▲0.01100.58 ▼3.38
Media Library /wp-admin/upload.php3.24 ▲0.0136.83 ▲1.99

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Vanilla Adaptive Maps
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.60 ▼0.791.74 ▲0.0942.00 ▲2.54
Dashboard /wp-admin2,206 ▲145.88 ▲0.96108.67 ▲3.4642.09 ▼3.93
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0239.80 ▲3.6337.35 ▲4.71
Add New Post /wp-admin/post-new.php1,514 ▼2817.66 ▼0.74673.92 ▲40.4053.01 ▼1.18
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0893.15 ▼5.8243.11 ▲0.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
4 plugin tags: shortcode, map, responsive, google maps

vanilla-adaptive-maps/vanilla-adaptive-maps.php Passed 13 tests

"Vanilla Adaptive Maps" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
106 characters long description:
Include an adaptive map based on a street address with a simple shortcode. No JavaScript library required.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin126 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2333593
JavaScript17030
Markdown1103

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin