90% tagelin-rota

Code Review | Tagelin Rota

WordPress plugin Tagelin Rota scored90%from 54 tests.

About plugin

  • Plugin page: tagelin-rota
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.11-4.9
  • WordPress version: 6.3.1
  • First release: Dec 8, 2018
  • Latest release: Dec 10, 2018
  • Number of updates: 12
  • Update frequency: every 0.2 days
  • Top authors: tagelin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 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
Install script ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▲1.55ms] Passed 4 tests

This is a short check of server-side resources used by Tagelin Rota
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4141.68 ▲3.18
Dashboard /wp-admin3.71 ▲0.4148.86 ▲0.59
Posts /wp-admin/edit.php3.76 ▲0.4048.36 ▲3.29
Add New Post /wp-admin/post-new.php6.23 ▲0.3492.64 ▼0.87
Media Library /wp-admin/upload.php3.57 ▲0.3437.53 ▲4.22

Server storage [IO: ▲0.22MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 8 new tables, 7 new options
New tables
wp_tagelin_rota_role
wp_tagelin_rota_event_role
wp_tagelin_rota_group
wp_tagelin_rota_schedule_detail
wp_tagelin_rota_person_role
wp_tagelin_rota_event
wp_tagelin_rota_person
wp_tagelin_rota_location
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
tagelin-rota-settings
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tagelin Rota
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.37 ▼1.271.79 ▲0.0840.10 ▼4.47
Dashboard /wp-admin2,206 ▲205.80 ▲0.8898.70 ▼11.0039.62 ▼3.13
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0242.97 ▲3.7837.57 ▼0.59
Add New Post /wp-admin/post-new.php1,533 ▲423.10 ▲4.76574.74 ▼105.8861.71 ▼1.90
Media Library /wp-admin/upload.php1,385 ▼64.19 ▼0.0199.69 ▲1.9041.68 ▼3.38

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 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • tagelin-rota-settings
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: roster, when, what, allocation, rota...

tagelin-rota/tagelin-rota.php Passed 13 tests

"Tagelin Rota" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Rota duty roster. Allocate people to roles at scheduled events.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin5,687 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19905822,558
PHP181,1364302,339
CSS2257106495
HTML1650295

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity7.75
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes17.69%
Methods144
▷ Static methods96.25%
▷ Public methods14298.61%
▷ Protected methods00.00%
▷ Private methods21.39%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants00.00%
▷ Class constants22100.00%
▷ Public constants22100.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