68% agendapress

Code Review | AgendaPress - Easily Publish Meeting Agendas and Programs on WordPress

WordPress plugin AgendaPress - Easily Publish Meeting Agendas and Programs on WordPress scored68%from 54 tests.

About plugin

  • Plugin page: agendapress
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 8, 2019
  • Latest release: Oct 31, 2023
  • Number of updates: 26
  • Update frequency: every 61.8 days
  • Top authors: blackandwhitedigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,092 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲5.58MB] [CPU: ▲26.84ms] 75% from 4 tests

Server-side resources used by AgendaPress - Easily Publish Meeting Agendas and Programs on WordPress
Please fix the following
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.58MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.24 ▲5.7775.03 ▲31.75
Dashboard /wp-admin9.26 ▲5.9185.53 ▲8.53
Posts /wp-admin/edit.php9.26 ▲5.9076.67 ▲31.56
Add New Post /wp-admin/post-new.php10.60 ▲4.72128.56 ▲35.51
Media Library /wp-admin/upload.php9.26 ▲6.0383.98 ▲44.69
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.2665.89

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 332 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
fs_active_plugins
fs_accounts
can_compress_scripts
db_upgraded
widget_recent-comments
fs_debug_mode
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by AgendaPress - Easily Publish Meeting Agendas and Programs on WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,004 ▲24314.24 ▼0.159.25 ▲7.5232.72 ▼11.24
Dashboard /wp-admin2,284 ▲1035.50 ▼0.17100.23 ▼13.6738.27 ▼5.21
Posts /wp-admin/edit.php2,193 ▲932.64 ▲0.6644.42 ▲9.6739.00 ▲4.50
Add New Post /wp-admin/post-new.php1,607 ▲20121.34 ▲3.47737.23 ▲98.5138.64 ▼13.76
Media Library /wp-admin/upload.php1,486 ▲835.03 ▲0.82109.88 ▲7.9746.69 ▲0.91
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1572.5828.9628.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/agendapress/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • fs_accounts
    • fs_active_plugins
    • fs_debug_mode
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/agendapress/public/partials/agendapress-public-display.php
    • > /wp-content/plugins/agendapress/admin/partials/meta-boxes/agenda-grid.php
    • > /wp-content/plugins/agendapress/admin/partials/meta-boxes/venue-rooms.php
    • > /wp-content/plugins/agendapress/admin/partials/agendapress-admin-display.php
  • 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: session in wp-content/plugins/agendapress/admin/partials/meta-boxes/agenda-sessions.php on line 123
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/agendapress/admin/partials/meta-boxes/venue-general-info.php:5
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/agendapress/admin/partials/meta-boxes/agenda-sessions.php on line 154
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/agendapress/admin/partials/meta-boxes/template-style-general-info.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/agendapress/admin/partials/meta-boxes/agenda-general-info.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/agendapress/admin/partials/meta-boxes/session-venue.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/agendapress/admin/partials/meta-boxes/session-general-info.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function age_fs() in wp-content/plugins/agendapress/admin/partials/meta-boxes/template-style-session-style.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/agendapress/admin/partials/meta-boxes/session-speakers.php:5
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/agendapress/admin/partials/meta-boxes/agenda-sessions.php on line 123

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

agendapress/agendapress.php Passed 13 tests

This is the main PHP file of "AgendaPress - Easily Publish Meeting Agendas and Programs on WordPress" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
123 characters long description:
AgendaPress is a powerful tool for meeting organizers to create and style agendas, orders of service, concert programs etc.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin57,982 lines of code in 279 files:
LanguageFilesBlank linesComment linesLines of code
PHP1538,62418,10237,769
JavaScript988521,73417,842
CSS273343462,370
JSON1001

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity77.89
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces5
Interfaces1
Traits2
Classes61
▷ Abstract classes23.28%
▷ Concrete classes5996.72%
▷ Final classes00.00%
Methods1,401
▷ Static methods20714.78%
▷ Public methods99571.02%
▷ Protected methods171.21%
▷ Private methods38927.77%
Functions106
▷ Named functions10599.06%
▷ Anonymous functions10.94%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
admin/imgs/checklist.png0.75KB0.84KB0.00%
public/images/twitter.png0.55KB0.95KB0.00%
public/images/facebook.png0.53KB0.84KB0.00%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%