84% jeero

Code Review | Jeero

WordPress plugin Jeero scored84%from 54 tests.

About plugin

  • Plugin page: jeero
  • Plugin version: 1.23.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jul 18, 2020
  • Latest release: Aug 23, 2023
  • Number of updates: 78
  • Update frequency: every 14.5 days
  • Top authors: slimndap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,352 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.86MB] [CPU: ▼1.30ms] Passed 4 tests

Server-side resources used by Jeero
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲0.8745.57 ▲5.04
Dashboard /wp-admin4.19 ▲0.8951.00 ▼0.00
Posts /wp-admin/edit.php4.24 ▲0.8954.90 ▲9.40
Add New Post /wp-admin/post-new.php6.73 ▲0.8584.50 ▼17.06
Media Library /wp-admin/upload.php4.05 ▲0.8341.51 ▲6.84
Jeero Logs /wp-admin/admin.php?page=jeero/debug4.0236.99

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 268 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Jeero
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.60 ▼0.691.83 ▲0.2342.43 ▲2.40
Dashboard /wp-admin2,222 ▲344.86 ▼0.03112.92 ▲4.1137.27 ▼6.66
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0143.33 ▲7.1636.70 ▲1.17
Add New Post /wp-admin/post-new.php1,531 ▼223.19 ▲0.10645.19 ▲0.2749.21 ▲0.14
Media Library /wp-admin/upload.php1,407 ▲164.23 ▲0.0396.16 ▼1.4441.30 ▼3.09
Jeero Logs /wp-admin/admin.php?page=jeero/debug8252.0424.0227.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 320× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'PLUGIN_PATHincludes/Footprint/Footprint.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/jeero/includes/Jeero.php on line 72
    • > PHP Warning
      include_once(): Failed opening 'PLUGIN_PATHincludes/Calendars/Theater_For_WordPress.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/jeero/includes/Jeero.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Jeero\\Calendars\\register_calendar() in wp-content/plugins/jeero/includes/Calendars/WP_Event_Manager.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/jeero/vendor/twig/twig/src/Node/ModuleNode.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/jeero/vendor/twig/twig/src/Node/WithNode.php:21
    • > PHP Warning
      Use of undefined constant PLUGIN_PATH - assumed 'PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/jeero/includes/Jeero.php on line 32
    • > PHP Warning
      include_once(PLUGIN_PATHincludes/Templates/Fields/Field.php): failed to open stream: No such file or directory in wp-content/plugins/jeero/includes/Jeero.php on line 68
    • > PHP Fatal error
      Uncaught Error: Class 'Jeero\\Subscriptions\\Fields\\Field' not found in wp-content/plugins/jeero/includes/Subscriptions/Fields/Textarea.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/jeero/vendor/twig/twig/src/NodeVisitor/AbstractNodeVisitor.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Jeero\\Subscriptions\\Fields\\Field' not found in wp-content/plugins/jeero/includes/Subscriptions/Fields/Message.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: calendar, events, tickets, veezi, audienceview...

jeero/Jeero.php 92% from 13 tests

The main PHP file in "Jeero" ver. 1.23.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jeero.php" instead of "Jeero.php")

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
Success! There were no dangerous files found in this plugin18,662 lines of code in 257 files:
LanguageFilesBlank linesComment linesLines of code
PHP2434,2536,19017,903
JSON400379
YAML24533157
CSS10190
JavaScript219271
SVG20235
Markdown28017
reStructuredText18510

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity8.69
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces44
Interfaces11
Traits0
Classes199
▷ Abstract classes126.03%
▷ Concrete classes18793.97%
▷ Final classes5730.48%
Methods1,019
▷ Static methods757.36%
▷ Public methods90188.42%
▷ Protected methods484.71%
▷ Private methods706.87%
Functions210
▷ Named functions19693.33%
▷ Anonymous functions146.67%
Constants65
▷ Global constants69.23%
▷ Class constants5990.77%
▷ Public constants59100.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 were not PNG files found in your plugin