89% eventsframe-connector

Code Review | EventsFrame Connector

WordPress plugin EventsFrame Connector scored89%from 54 tests.

About plugin

  • Plugin page: eventsframe-conne...
  • Plugin version: 1.04
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 30, 2019
  • Latest release: Aug 10, 2020
  • Number of updates: 8
  • Update frequency: every 47.6 days
  • Top authors: eventsframe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /921 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.61ms] Passed 4 tests

This is a short check of server-side resources used by EventsFrame Connector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.28 ▼5.45
Dashboard /wp-admin3.42 ▲0.1147.55 ▼5.06
Posts /wp-admin/edit.php3.54 ▲0.1851.45 ▲1.25
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.00 ▼0.39
Media Library /wp-admin/upload.php3.34 ▲0.1134.34 ▼3.52
All Events /wp-admin/edit.php?post_type=eventsframe3.3940.68
Add New Event Page /wp-admin/post-new.php?post_type=eventsframe3.3544.35
EventsFrame /wp-admin/options-general.php?page=efrm_settings3.3133.10

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for EventsFrame Connector
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲3714.26 ▼0.091.84 ▼0.0444.38 ▲0.93
Dashboard /wp-admin2,229 ▲555.58 ▼0.0994.52 ▼3.5041.61 ▼4.62
Posts /wp-admin/edit.php2,134 ▲342.04 ▲0.0839.20 ▲2.3337.56 ▼2.66
Add New Post /wp-admin/post-new.php1,552 ▲2423.17 ▲0.03603.46 ▼77.9555.64 ▼3.33
Media Library /wp-admin/upload.php1,425 ▲224.27 ▲0.0995.15 ▼10.2743.10 ▼0.91
All Events /wp-admin/edit.php?post_type=eventsframe1,0921.9431.0632.49
Add New Event Page /wp-admin/post-new.php?post_type=eventsframe8941.516.6322.59
EventsFrame /wp-admin/options-general.php?page=efrm_settings8412.0325.2630.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires at least: Invalid version format
The official readme.txt is a good inspiration

eventsframe-connector/eventsframe.php 92% from 13 tests

The principal PHP file in "EventsFrame Connector" v. 1.04 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eventsframe-connector.php" instead of "eventsframe.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin444 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP72709444

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity20.50
▷ Minimum class complexity16.00
▷ Maximum class complexity25.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods41
▷ Static methods12.44%
▷ Public methods3175.61%
▷ Protected methods00.00%
▷ Private methods1024.39%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin