84% wp-amaps

Code Review | wp_amaps

WordPress plugin wp_amaps scored84%from 54 tests.

About plugin

  • Plugin page: wp-amaps
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 1.6-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2015
  • Latest release: Dec 9, 2015
  • Number of updates: 18
  • Update frequency: N/A
  • Top authors: _rccoder_ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,242 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by wp_amaps
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0239.67 ▼1.45
Dashboard /wp-admin3.32 ▲0.0244.92 ▼0.97
Posts /wp-admin/edit.php3.37 ▲0.0144.91 ▼4.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.86 ▼13.42
Media Library /wp-admin/upload.php3.24 ▲0.0136.80 ▲2.11

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for wp_amaps
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.32 ▼1.322.12 ▼0.0843.04 ▼7.65
Dashboard /wp-admin2,206 ▲215.96 ▲1.12110.21 ▲4.8540.85 ▼0.12
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0238.64 ▼2.1540.01 ▲4.39
Add New Post /wp-admin/post-new.php1,533 ▲2023.17 ▲5.66687.75 ▲34.4452.38 ▼2.05
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0595.01 ▼9.2240.46 ▼4.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-amaps/wp-amaps.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: map, amaps

wp-amaps/wp-amaps.php 92% from 13 tests

The main file in "wp_amaps" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)

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 detected58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1122058

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin