84% event-organiser-posterboard

Code Review | Event Organiser Posterboard

WordPress plugin Event Organiser Posterboard scored84%from 54 tests.

About plugin

  • Plugin page: event-organiser-p...
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.7
  • WordPress version: 6.3.1
  • First release: Jan 6, 2014
  • Latest release: May 26, 2021
  • Number of updates: 20
  • Update frequency: every 135.3 days
  • Top authors: stephenharris (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active /44,601 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.35ms] Passed 4 tests

Server-side resources used by Event Organiser Posterboard
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.18 ▼2.91
Dashboard /wp-admin3.35 ▲0.0151.19 ▼14.71
Posts /wp-admin/edit.php3.40 ▲0.0549.91 ▲1.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.25 ▼12.04
Media Library /wp-admin/upload.php3.28 ▲0.0537.35 ▲0.28

Server storage [IO: ▲0.46MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Event Organiser Posterboard
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.59 ▲0.222.13 ▲0.3444.55 ▼0.15
Dashboard /wp-admin2,195 ▲185.55 ▼0.0388.37 ▼18.2839.24 ▼4.00
Posts /wp-admin/edit.php2,097 ▼01.99 ▲0.0334.42 ▼0.1235.81 ▼2.46
Add New Post /wp-admin/post-new.php1,526 ▼523.02 ▲0.00635.10 ▲2.4650.42 ▼7.17
Media Library /wp-admin/upload.php1,394 ▼64.19 ▲0.0196.85 ▼5.5244.94 ▼2.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/event-organiser-posterboard/event-organiser-posterboard.php:30

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Event posterboard), #2 (Event posterboard)
The official readme.txt is a good inspiration

event-organiser-posterboard/event-organiser-posterboard.php Passed 13 tests

This is the main PHP file of "Event Organiser Posterboard" version 3.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Display events in as a responsive posterboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected614 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25619224
PHP15032208
Markdown155099
PO File261640
HTML19023
CSS10020

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.42MB with 0.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png249.34KB86.58KB▼ 65.28%
screenshot-1.png182.62KB68.00KB▼ 62.77%