79% events-as-posts

Code Review | Events as Posts

WordPress plugin Events as Posts scored 79% from 54 tests.

About plugin

  • Plugin page: events-as-posts
  • Plugin version: 0.5.9
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3
  • WordPress version: 6.3.1
  • First release: Sep 15, 2018
  • Latest release: Dec 14, 2019
  • Number of updates: 65
  • Update frequency: every 7.0 days
  • Top authors: orbam7819 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 6,320 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.31ms] Passed 4 tests

An overview of server-side resources used by Events as Posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.14 ▼2.07
Dashboard /wp-admin3.36 ▲0.0647.38 ▼4.52
Posts /wp-admin/edit.php3.42 ▲0.0642.68 ▼11.26
Add New Post /wp-admin/post-new.php6.06 ▲0.1785.61 ▼11.39
Media Library /wp-admin/upload.php3.28 ▲0.0635.86 ▼1.52
Add event /wp-admin/post-new.php?post_type=eap_event6.0684.00
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=eap_event3.3739.44
Settings /wp-admin/edit.php?post_type=eap_event&page=eap_settings3.2529.95
All events /wp-admin/edit.php?post_type=eap_event3.3435.52

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
category_children
eap_version
db_upgraded
theysaidso_admin_options
widget_recent-posts
eap_settings
can_compress_scripts
widget_recent-comments
eap_settings_style

Browser metrics Passed 4 tests

Events as Posts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10513.47 ▼1.161.65 ▼0.2142.42 ▲0.23
Dashboard /wp-admin2,260 ▲695.02 ▲0.1599.55 ▼6.8542.07 ▼3.35
Posts /wp-admin/edit.php2,145 ▲532.32 ▲0.3534.81 ▼7.2931.55 ▼5.21
Add New Post /wp-admin/post-new.php1,568 ▲3418.49 ▼4.47608.90 ▲6.7933.90 ▼12.92
Media Library /wp-admin/upload.php1,445 ▲574.41 ▲0.1797.85 ▼1.6141.36 ▼7.64
Add event /wp-admin/post-new.php?post_type=eap_event6,70221.59918.0436.44
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=eap_event1,5022.0835.1535.04
Settings /wp-admin/edit.php?post_type=eap_event&page=eap_settings1,1752.1028.8751.14
All events /wp-admin/edit.php?post_type=eap_event1,1472.2432.7130.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • category_children
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/events-as-posts/events-as-posts.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-as-posts/settings/eap-settings-page.php:122
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/events-as-posts/event-meta.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-as-posts/event-post-type.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-as-posts/settings/eap-register-settings.php:107
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/events-as-posts/eap-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-as-posts/eap-functions.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/events-as-posts/event-content.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: events, agenda, event list, event

events-as-posts/events-as-posts.php Passed 13 tests

"Events as Posts" version 0.5.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
A simple plugin that allows you to post events on your site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,135 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP114091481,127
JavaScript1015
CSS1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions50
▷ Named functions50100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin