78% eventsbymike

Code Review | Events byMike

WordPress plugin Events byMike scored78%from 54 tests.

About plugin

  • Plugin page: eventsbymike
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Dec 7, 2012
  • Latest release: Jan 6, 2013
  • Number of updates: 19
  • Update frequency: every 1.8 days
  • Top authors: byMike (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,301 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.57MB] [CPU: ▼12.21ms] Passed 4 tests

Server-side resources used by Events byMike
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1940.51 ▼3.10
Dashboard /wp-admin3.41 ▲0.1050.80 ▲0.91
Posts /wp-admin/edit.php3.52 ▲0.1651.99 ▲3.54
Add New Post /wp-admin/post-new.php3.25 ▼2.6339.68 ▼50.20
Media Library /wp-admin/upload.php3.33 ▲0.1040.23 ▲6.78

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: 1 new table, 8 new options
New tables
wp_eventsbymike
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
eventsbymike_db_version
eventsbymike_plugin_version
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Events byMike: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.65 ▼1.101.57 ▼0.4341.29 ▼8.88
Dashboard /wp-admin2,219 ▲315.02 ▼0.89101.00 ▼12.2141.16 ▼4.36
Posts /wp-admin/edit.php2,111 ▲222.10 ▲0.0839.93 ▲4.9936.11 ▼1.61
Add New Post /wp-admin/post-new.php6,719 ▲5,18627.63 ▲4.27926.39 ▲245.0746.23 ▼11.05
Media Library /wp-admin/upload.php1,408 ▲234.41 ▲0.2496.64 ▼8.6943.87 ▼2.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/eventsbymike/app/view/thecontent.php
    • > /wp-content/plugins/eventsbymike/app/view/showEvents.php
    • > /wp-content/plugins/eventsbymike/app/view/showVita.php
  • 19× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/eventsbymike/app/view/showVita.php on line 21
    • > PHP Notice
      Undefined variable: pluginDirUrl in wp-content/plugins/eventsbymike/app/view/metaboxes/postDates.php on line 31
    • > PHP Notice
      Undefined variable: dates in wp-content/plugins/eventsbymike/app/view/showVita.php on line 21
    • > PHP Notice
      Undefined variable: pluginDirUrl in wp-content/plugins/eventsbymike/app/view/metaboxes/postDates.php on line 29
    • > PHP Fatal error
      Uncaught Error: Class 'wpbymike_controller' not found in wp-content/plugins/eventsbymike/app/controller/shortcodes.php:24
    • > PHP Notice
      Undefined variable: pluginDirUrl in wp-content/plugins/eventsbymike/app/view/metaboxes/postDates.php on line 30
    • > PHP Notice
      Undefined variable: msgbox in wp-content/plugins/eventsbymike/app/view/metaboxes/postDates.php on line 22
    • > PHP Fatal error
      Uncaught Error: Class 'wpbymike_baseClass' not found in wp-content/plugins/eventsbymike/lib/view.php:25
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/eventsbymike/app/view/showEvents.php on line 20
    • > PHP Fatal error
      Uncaught Error: Class 'wpbymike_controller' not found in wp-content/plugins/eventsbymike/app/controller/thecontent.php:24

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === eventsbymike === )
You can take inspiration from this readme.txt

eventsbymike/eventsbymike.php Passed 13 tests

The main file in "Events byMike" v. 0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
Ein PlugIn zur Anzeige von Auftrittsterminen.

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 plugin1,951 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP154917461,010
CSS78499880
JavaScript2211261

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity12.09
▷ Minimum class complexity2.00
▷ Maximum class complexity43.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes218.18%
▷ Concrete classes981.82%
▷ Final classes00.00%
Methods73
▷ Static methods34.11%
▷ Public methods7197.26%
▷ Protected methods11.37%
▷ Private methods11.37%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
19 PNG files occupy 0.49MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/ui-lightness/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.16KB0.18KB0.00%
css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png4.32KB1.93KB▼ 55.41%
css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png0.10KB0.11KB0.00%
css/img_inquisitor/_source/ul_corner.png27.00KB0.12KB▼ 99.56%