90% xllentech-upcoming-events

Code Review | Xllentech Upcoming Events

WordPress plugin Xllentech Upcoming Events scored90%from 54 tests.

About plugin

  • Plugin page: xllentech-upcomin...
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2016
  • Latest release: Nov 18, 2022
  • Number of updates: 33
  • Update frequency: every 74.4 days
  • Top authors: xllentech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,434 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.41ms] Passed 4 tests

Analyzing server-side resources used by Xllentech Upcoming Events
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.74 ▼3.00
Dashboard /wp-admin3.35 ▼0.0050.17 ▼16.04
Posts /wp-admin/edit.php3.40 ▲0.0449.94 ▲0.36
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.39 ▼18.95
Media Library /wp-admin/upload.php3.27 ▲0.0438.07 ▲1.77

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Xllentech Upcoming Events
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.33 ▼0.021.90 ▲0.3242.81 ▲2.28
Dashboard /wp-admin2,189 ▲95.58 ▼0.0681.89 ▼3.6839.19 ▲0.15
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0232.31 ▼7.3237.09 ▲0.77
Add New Post /wp-admin/post-new.php1,526 ▼523.07 ▼0.41654.41 ▲23.3661.97 ▲1.38
Media Library /wp-admin/upload.php1,397 ▼04.18 ▼0.03103.36 ▲4.6947.65 ▲3.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_xllentech_upcoming_events_plugin
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: upcoming islamic events, upcoming event plugin, islamic events, xllentech islamic events

xllentech-upcoming-events/xllentech-upcoming-events.php Passed 13 tests

The main file in "Xllentech Upcoming Events" v. 1.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
A Plugin to display Upcoming Islamic Events from php file

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin191 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24957190
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity5.75
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin