93% acf-rrule-field

Code Review | ACF RRule Field

WordPress plugin ACF RRule Field scored 93% from 54 tests.

About plugin

  • Plugin page: acf-rrule-field
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.9.2
  • First release: Nov 19, 2020
  • Latest release: Dec 24, 2021
  • Number of updates: 13
  • Update frequency: every 30.8 days
  • Top authors: marcbelletre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 768 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼300.93ms] Passed 4 tests

Server-side resources used by ACF RRule Field
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1254.12 ▲4.34
Dashboard /wp-admin3.46 ▲0.0633.52 ▼1.25
Posts /wp-admin/edit.php3.70 ▲0.0637.94 ▲1.27
Add New Post /wp-admin/post-new.php6.93 ▼0.0492.71 ▼1,203.50
Media Library /wp-admin/upload.php3.35 ▲0.0525.41 ▼0.24

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 201 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF RRule Field
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.77 ▲0.175.98 ▼0.452.30 ▲0.05
Dashboard /wp-admin2,892 ▲386.07 ▼0.24116.48 ▼17.00157.85 ▼2.29
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0162.02 ▼0.48134.16 ▼9.69
Add New Post /wp-admin/post-new.php1,711 ▲5020.95 ▲5.14429.60 ▲15.42158.33 ▲5.43
Media Library /wp-admin/upload.php1,698 ▲35.52 ▲0.01142.79 ▲1.35194.66 ▲8.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
  • 115× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Recurr\\Exception' not found in wp-content/plugins/acf-rrule-field/vendor/simshaun/recurr/src/Recurr/Exception/InvalidWeekday.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/acf-rrule-field/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/acf-rrule-field/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/acf-rrule-field/vendor/composer/installers/src/Composer/Installers/WinterInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/acf-rrule-field/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/acf-rrule-field/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/acf-rrule-field/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/acf-rrule-field/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/acf-rrule-field/vendor/composer/installers/src/Composer/Installers/DframeInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/acf-rrule-field/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
Attributes that require attention: The official readme.txt is a good inspiration

acf-rrule-field/acf-rrule.php 92% from 13 tests

"ACF RRule Field" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-rrule-field.php" instead of "acf-rrule.php")

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin8,960 lines of code in 187 files:
LanguageFilesBlank linesComment linesLines of code
PHP1641,6833,0267,478
JSON600536
Markdown41140249
reStructuredText6223241199
PO File17480169
YAML3313123
CSS123090
JavaScript1363465
XML112251

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 152)
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.09
▷ Minimum class complexity1.00
▷ Maximum class complexity161.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity152.00
Code structure
Namespaces9
Interfaces5
Traits0
Classes139
▷ Abstract classes42.88%
▷ Concrete classes13597.12%
▷ Final classes00.00%
Methods423
▷ Static methods399.22%
▷ Public methods35984.87%
▷ Protected methods5312.53%
▷ Private methods112.60%
Functions72
▷ Named functions22.78%
▷ Anonymous functions7097.22%
Constants31
▷ Global constants00.00%
▷ Class constants31100.00%
▷ Public constants31100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin