83% easy-maps

Code Review | Trippy Places

WordPress plugin Trippy Places scored83%from 54 tests.

About plugin

  • Plugin page: easy-maps
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2014
  • Latest release: Oct 1, 2020
  • Number of updates: 59
  • Update frequency: every 38.2 days
  • Top authors: awerhane74 (62.71%)usetrippy (38.98%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /4,628 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
Install script ran successfully

Server metrics [RAM: ▼0.36MB] [CPU: ▼18.26ms] Passed 4 tests

A check of server-side resources used by Trippy Places
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2936.90 ▼6.05
Dashboard /wp-admin3.69 ▲0.3946.29 ▼3.92
Posts /wp-admin/edit.php3.73 ▲0.3745.66 ▼0.72
Add New Post /wp-admin/post-new.php3.43 ▼2.4636.79 ▼61.32
Media Library /wp-admin/upload.php3.56 ▲0.3433.85 ▼1.73

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Trippy Places
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.30 ▼1.071.71 ▼0.5841.03 ▼8.82
Dashboard /wp-admin2,209 ▲175.85 ▲0.9495.64 ▼14.2438.45 ▲0.13
Posts /wp-admin/edit.php2,094 ▲52.01 ▼0.0342.08 ▲5.8737.68 ▲3.35
Add New Post /wp-admin/post-new.php6,228 ▲4,71425.93 ▲8.41899.54 ▲194.1135.30 ▼18.70
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0299.30 ▼10.2645.49 ▼2.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-maps/easy-maps.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (Add places within your post.) image not found
The official readme.txt is a good inspiration

easy-maps/easy-maps.php 85% from 13 tests

This is the main PHP file of "Trippy Places" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,912 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22882771,472
CSS27319250
JavaScript1936179
XML10011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity164.50
▷ Minimum class complexity131.00
▷ Maximum class complexity198.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods85
▷ Static methods11.18%
▷ Public methods6981.18%
▷ Protected methods1618.82%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.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
No PNG images were found in this plugin