84% repeat-events

Code Review | Repeat Events

WordPress plugin Repeat Events scored84%from 54 tests.

About plugin

  • Plugin page: repeat-events
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Dec 6, 2020
  • Latest release: Jan 31, 2021
  • Number of updates: 6
  • Update frequency: every 10.2 days
  • Top authors: blueboxdigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /331 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.02MB] [CPU: ▼1.21ms] Passed 4 tests

A check of server-side resources used by Repeat Events
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9745.88 ▲5.08
Dashboard /wp-admin4.30 ▲1.0054.23 ▼3.29
Posts /wp-admin/edit.php4.42 ▲1.0653.04 ▲1.29
Add New Post /wp-admin/post-new.php6.98 ▲1.1091.85 ▼7.90
Media Library /wp-admin/upload.php4.30 ▲1.0744.03 ▲10.54
Field Groups /wp-admin/edit.php?post_type=acf-field-group4.3341.73
Events /wp-admin/edit.php?post_type=bluebox_repeat_event4.2737.46
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools4.2638.41
Add New /wp-admin/post-new.php?post_type=bluebox_repeat_event4.5261.64
Add New /wp-admin/post-new.php?post_type=acf-field-group4.4456.02

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 249 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
acf_version
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Repeat Events
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲6314.35 ▲0.151.70 ▼0.0944.35 ▲4.05
Dashboard /wp-admin2,255 ▲845.63 ▲0.0490.53 ▼1.3641.77 ▼1.41
Posts /wp-admin/edit.php2,157 ▲572.02 ▲0.0135.41 ▼5.2536.05 ▼4.36
Add New Post /wp-admin/post-new.php6,707 ▲5,18128.70 ▲5.541,162.85 ▲481.8340.84 ▼14.68
Media Library /wp-admin/upload.php1,995 ▲5928.28 ▲4.03216.74 ▲113.0253.98 ▲4.96
Field Groups /wp-admin/edit.php?post_type=acf-field-group1,2462.2036.5332.50
Events /wp-admin/edit.php?post_type=bluebox_repeat_event1,1271.9631.4728.78
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools1,1812.9747.6133.42
Add New /wp-admin/post-new.php?post_type=bluebox_repeat_event2,82510.58237.5568.57
Add New /wp-admin/post-new.php?post_type=acf-field-group2,3133.6981.2442.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • acf_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 81× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/repeat-events/includes/acf/includes/fields/class-acf-field-radio.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/repeat-events/includes/acf/includes/upgrades.php:450
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/repeat-events/includes/acf/includes/fields/class-acf-field-number.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/repeat-events/includes/acf/includes/acf-form-functions.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field_number' not found in wp-content/plugins/repeat-events/includes/acf/includes/fields/class-acf-field-range.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/repeat-events/includes/acf/includes/admin/admin-field-group.php:34
    • > PHP Warning
      include_once(): Failed opening 'BLUEBOX_REPEAT_PLUGIN_DIR/includes/acf/acf.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/repeat-events/src/acf/acf.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/repeat-events/includes/acf/includes/fields/class-acf-field-accordion.php:5
    • > PHP Notice
      Undefined variable: group_id in wp-content/plugins/repeat-events/includes/acf/includes/admin/views/html-location-group.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/repeat-events/includes/acf/includes/acf-field-group-functions.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: same permalink events, acf events, event series loop, repeat events, events loop...

repeat-events/repeat-events.php Passed 13 tests

Analyzing the main PHP file in "Repeat Events" version 1.0.0
72 characters long description:
A simple repeating events listing plugin to create SEO optimised events.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin89,562 lines of code in 199 files:
LanguageFilesBlank linesComment linesLines of code
PO File3123,63339,88649,083
JavaScript146,7216,68722,545
PHP1389,66017,49615,975
CSS12209601,626
JSON300319
Markdown111014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.85
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes100
▷ Abstract classes22.00%
▷ Concrete classes9898.00%
▷ Final classes00.00%
Methods669
▷ Static methods10.15%
▷ Public methods66899.85%
▷ Protected methods00.00%
▷ Private methods10.15%
Functions436
▷ Named functions43299.08%
▷ Anonymous functions40.92%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.94MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png426.39KB138.35KB▼ 67.55%
includes/acf/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png3.68KB4.17KB0.00%
includes/acf/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png0.08KB0.08KB0.00%
assets/screenshot-1.png343.49KB109.32KB▼ 68.17%
includes/acf/assets/inc/datepicker/images/ui-icons_444444_256x240.png3.68KB4.17KB0.00%