84% admidio-events

Code Review | Admidio Events

WordPress plugin Admidio Events scored 84% from 54 tests.

About plugin

  • Plugin page: admidio-events
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2014
  • Latest release: Jan 29, 2018
  • Number of updates: 41
  • Update frequency: every 32.1 days
  • Top authors: fiwad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,373 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼9.11ms] Passed 4 tests

Analyzing server-side resources used by Admidio Events
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0239.55 ▼16.71
Dashboard /wp-admin3.32 ▲0.0148.13 ▲4.92
Posts /wp-admin/edit.php3.37 ▼0.4844.57 ▼8.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.29 ▼16.52
Media Library /wp-admin/upload.php3.24 ▲0.0140.34 ▲6.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_admidio-events
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Admidio Events
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲8313.98 ▼0.448.50 ▲6.6341.67 ▼7.79
Dashboard /wp-admin2,209 ▲34.85 ▼0.95113.63 ▲18.0743.22 ▲3.21
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0036.33 ▲1.2931.28 ▼1.79
Add New Post /wp-admin/post-new.php1,534 ▲1423.18 ▲0.31687.69 ▼86.1856.85 ▼0.33
Media Library /wp-admin/upload.php1,385 ▼34.29 ▲0.04109.53 ▼3.7749.60 ▲1.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_admidio-events
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/admidio-events/admidio-events.php:40

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: widget, admidio, rss, events, membership

admidio-events/admidio-events.php 92% from 13 tests

"Admidio Events" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

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 plugin326 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP184156208
PO File1194257
JavaScript2166831
CSS182630

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin