10% mobilizon-mirror

Code Review | Mobilizon Mirror

WordPress plugin Mobilizon Mirror scored10%from 54 tests.

About plugin

  • Plugin page: mobilizon-mirror
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2021
  • Latest release: Jan 17, 2023
  • Number of updates: 12
  • Update frequency: every 43.2 days
  • Top authors: andremenrath (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /890 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/mobilizon-mirror/includes/class-mobilizon-mirror-api.php+58
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.65MB] [CPU: ▼51.73ms] Passed 4 tests

Server-side resources used by Mobilizon Mirror
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.34 ▼1.137.31 ▼34.64
Dashboard /wp-admin2.36 ▼0.958.16 ▼47.53
Posts /wp-admin/edit.php2.36 ▼1.008.52 ▼36.77
Add New Post /wp-admin/post-new.php2.36 ▼3.538.51 ▼87.98
Media Library /wp-admin/upload.php2.36 ▼0.878.07 ▼31.76
Instructions /wp-admin/admin.php?page=mobilizon_mirror_faq2.367.93
Settings /wp-admin/admin.php?page=mobilizon-mirror2.367.99

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Mobilizon Mirror
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲21913.80 ▼0.488.24 ▲6.5142.74 ▼1.38
Dashboard /wp-admin2,257 ▲775.61 ▼0.0583.66 ▼17.0437.19 ▼7.12
Posts /wp-admin/edit.php2,171 ▲712.03 ▲0.0134.78 ▼0.9432.04 ▼5.13
Add New Post /wp-admin/post-new.php1,549 ▲2323.33 ▲0.46679.62 ▼32.9753.17 ▲0.46
Media Library /wp-admin/upload.php1,466 ▲694.22 ▼0.1495.96 ▼19.1239.74 ▼8.20
Instructions /wp-admin/admin.php?page=mobilizon_mirror_faq8591.8224.8025.85
Settings /wp-admin/admin.php?page=mobilizon-mirror1,2791.6924.2945.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/mobilizon-mirror/includes/class-mobilizon-mirror-api.php+58
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mobilizon-mirror
    • > Notice in wp-content/plugins/mobilizon-mirror/includes/class-mobilizon-mirror-api.php+58
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mobilizon-mirror/trunk/public/partials/mobilizon-mirror-public-display.php
    • > /wp-content/plugins/mobilizon-mirror/public/partials/mobilizon-mirror-public-display.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobilizon-mirror/trunk/public/archive-mobilizon-mirror-event-card.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobilizon-mirror/trunk/public/archive-mobilizon-mirror-event-list.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobilizon-mirror/public/archive-mobilizon-mirror-event-card.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobilizon-mirror/public/single-mobilizon-mirror-event-header-image.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobilizon-mirror/public/archive-mobilizon-mirror-event-list.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobilizon-mirror/public/single-mobilizon-mirror-event-side-image.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobilizon-mirror/trunk/public/single-mobilizon-mirror-event-side-image.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobilizon-mirror/trunk/public/single-mobilizon-mirror-event-header-image.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: calendar, mobilizon, events

mobilizon-mirror/mobilizon-mirror.php Passed 13 tests

The main PHP file in "Mobilizon Mirror" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
19 characters long description:
Integrate Mobilizon

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
Everything looks great! No dangerous files found in this plugin3,106 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP223621,3841,477
CSS4968608
Sass4578566
SVG200185
JavaScript21855128
PO File15493128
Markdown115014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods124
▷ Static methods1411.29%
▷ Public methods8870.97%
▷ Protected methods00.00%
▷ Private methods3629.03%
Functions14
▷ Named functions642.86%
▷ Anonymous functions857.14%
Constants2
▷ Global constants2100.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