84% joggin-agenda

Code Review | Joggin Agenda

WordPress plugin Joggin Agenda scored 84% from 54 tests.

About plugin

  • Plugin page: joggin-agenda
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.1
  • WordPress version: 5.8.1
  • First release: Jan 26, 2016
  • Latest release: Apr 28, 2016
  • Number of updates: 20
  • Update frequency: every 4.8 days
  • Top authors: iazone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼141.30ms] Passed 4 tests

An overview of server-side resources used by Joggin Agenda
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0539.00 ▼0.30
Dashboard /wp-admin3.11 ▲0.0545.26 ▼6.96
Posts /wp-admin/edit.php3.16 ▲0.0556.06 ▲9.38
Add New Post /wp-admin/post-new.php5.46 ▲0.03103.49 ▼559.75
Media Library /wp-admin/upload.php3.05 ▲0.0538.91 ▲1.83

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
widget_jogginagenda

Browser metrics Passed 4 tests

Checking browser requirements for Joggin Agenda
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.20 ▲0.5711.58 ▲0.2147.32 ▼4.93
Dashboard /wp-admin2,967 ▲335.87 ▼0.10155.71 ▼15.88113.94 ▼3.28
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0078.45 ▼2.7297.48 ▲3.74
Add New Post /wp-admin/post-new.php1,500 ▼18318.55 ▼0.18394.71 ▼17.72117.23 ▲0.31
Media Library /wp-admin/upload.php1,807 ▼05.05 ▲0.04176.55 ▼11.86123.71 ▼3.70

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
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_jogginagenda

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/joggin-agenda/jogginAgenda.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/joggin-agenda/agendaWidget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: joggin, agenda, running

joggin-agenda/jogginAgenda.php 92% from 13 tests

The main PHP file in "Joggin Agenda" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
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 ("joggin-agenda.php" instead of "jogginAgenda.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin144 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2388144

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin