10% eventist

Code Review | Eventist

WordPress plugin Eventist scored 10% from 54 tests.

About plugin

  • Plugin page: eventist
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 5.9.2
  • First release: Dec 20, 2012
  • Latest release: Jan 2, 2013
  • Number of updates: 5
  • Update frequency: every 2.6 days
  • Top authors: iceS3ven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,440 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/eventist/eventist_widget.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; evWid has a deprecated constructor

Server metrics [RAM: ▲0.01MB] [CPU: ▼293.89ms] Passed 4 tests

A check of server-side resources used by Eventist
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.1967.09 ▲14.93
Dashboard /wp-admin3.44 ▲0.0450.31 ▼31.10
Posts /wp-admin/edit.php3.67 ▲0.0353.39 ▲12.07
Add New Post /wp-admin/post-new.php6.90 ▼0.06112.33 ▼1,167.90
Media Library /wp-admin/upload.php3.32 ▲0.0335.38 ▲11.36
Eventist Plugin /wp-admin/admin.php?page=eventist-main3.2733.95
About /wp-admin/admin.php?page=eventist-about3.2743.33
Settings /wp-admin/admin.php?page=eventist-settings3.2769.35

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: 1 new table, 1 new option
New tables
wp_eventist_own_tb
New WordPress options
widget_evwid

Browser metrics Passed 4 tests

An overview of browser requirements for Eventist
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,839 ▲8515.54 ▼0.176.47 ▼0.492.96 ▲0.38
Dashboard /wp-admin2,934 ▲766.19 ▲0.02121.64 ▼13.06186.41 ▲21.04
Posts /wp-admin/edit.php2,741 ▲543.27 ▲0.0264.12 ▼27.92160.08 ▲0.06
Add New Post /wp-admin/post-new.php1,698 ▲3021.80 ▲1.98432.23 ▲26.28170.73 ▲8.11
Media Library /wp-admin/upload.php1,745 ▲475.58 ▲0.10123.02 ▼15.72231.65 ▲43.65
Eventist Plugin /wp-admin/admin.php?page=eventist-main1,2962.7654.66104.54
About /wp-admin/admin.php?page=eventist-about1,0652.6460.68117.46
Settings /wp-admin/admin.php?page=eventist-settings1,0962.7658.92128.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_eventist_own_tb
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_evwid

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eventist-settings
    • > Deprecated in wp-content/plugins/eventist/eventist_admin.php+194
    Non-static method evAd::wrapStart() should not be called statically
    • > GET request to /wp-admin/admin.php?page=eventist-main
    • > Deprecated in wp-content/plugins/eventist/eventist_admin.php+94
    Non-static method evAd::showMessage() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eventist-main
    • > User notice in wp-includes/functions.php+5768
    wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eventist-settings
    • > Deprecated in wp-content/plugins/eventist/eventist_admin.php+212
    Non-static method evAd::wrapEnd() should not be called statically

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/eventist/eventist.php:27
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/eventist/eventist_table.php on line 6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/eventist/eventist_table.php on line 6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/eventist/eventist_table.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eventist/eventist_widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: event calendar, calendar, events, eventist

eventist/eventist.php Passed 13 tests

The main PHP file in "Eventist" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
Easy event manager for WordPress CMS

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
Everything looks great! No dangerous files found in this plugin1,463 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP61944311,040
CSS34546411
JavaScript15012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity29.20
▷ Minimum class complexity6.00
▷ Maximum class complexity49.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods61
▷ Static methods2439.34%
▷ Public methods4980.33%
▷ Protected methods00.00%
▷ Private methods1219.67%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
js/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
js/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
js/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
js/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%