83% wp-event-map

Code Review | WP Event Map

WordPress plugin WP Event Map scored 83% from 54 tests.

About plugin

  • Plugin page: wp-event-map
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 17, 2016
  • Latest release: Mar 14, 2016
  • Number of updates: 26
  • Update frequency: every 1.0 days
  • Top authors: saurav.rox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 925 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.12ms] Passed 4 tests

Server-side resources used by WP Event Map
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.30 ▼1.04
Dashboard /wp-admin3.34 ▲0.0347.77 ▼3.99
Posts /wp-admin/edit.php3.39 ▲0.0345.81 ▲0.79
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.31 ▼16.24
Media Library /wp-admin/upload.php3.26 ▲0.0337.43 ▲2.41
All Events /wp-admin/edit.php?post_type=event3.3035.63
Add New /wp-admin/post-new.php?post_type=event3.3948.96

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Event Map
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,981 ▲24615.45 ▲1.2311.58 ▲9.8254.55 ▲10.42
Dashboard /wp-admin2,257 ▲785.87 ▲0.74110.46 ▼17.0640.04 ▼5.90
Posts /wp-admin/edit.php2,140 ▲482.16 ▲0.1648.89 ▲11.7435.27 ▲0.79
Add New Post /wp-admin/post-new.php1,565 ▲2818.42 ▼4.85595.32 ▼75.4834.53 ▼20.45
Media Library /wp-admin/upload.php1,436 ▲485.28 ▲1.05104.98 ▲2.7642.17 ▼0.88
All Events /wp-admin/edit.php?post_type=event1,1182.7943.8128.55
Add New /wp-admin/post-new.php?post_type=event4,5369.56217.2569.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-event-map/event-meta.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% 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
3 plugin tags: event, map, date

wp-event-map/event-map.php 77% from 13 tests

Analyzing the main PHP file in "WP Event Map" version 1.0
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 192 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-event-map.php" instead of "event-map.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,604 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript76303064,203
CSS4164165966
PHP2118183435

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.00
▷ Minimum class complexity14.00
▷ Maximum class complexity16.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
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
images/icon-datepicker.png0.63KB0.48KB▼ 23.91%