100% admin-events-extended

Code Review | Admin Events Extended

WordPress plugin Admin Events Extended scored 100% from 54 tests.

About plugin

  • Plugin page: admin-events-exte...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9
  • WordPress version: 5.9.2
  • First release: Jul 11, 2017
  • Latest release: Nov 16, 2017
  • Number of updates: 4
  • Update frequency: every 32.0 days
  • Top authors: toddhalfpenny (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 696 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼292.61ms] Passed 4 tests

An overview of server-side resources used by Admin Events Extended
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.63 ▲0.20
Dashboard /wp-admin3.42 ▲0.0232.46 ▼1.97
Posts /wp-admin/edit.php3.65 ▲0.0136.66 ▼0.02
Add New Post /wp-admin/post-new.php6.89 ▼0.0899.27 ▼1,165.04
Media Library /wp-admin/upload.php3.30 ▼0.0025.70 ▼3.39

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Events Extended
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2115.76 ▲0.046.07 ▼0.552.38 ▲0.29
Dashboard /wp-admin2,887 ▲266.13 ▼0.05119.36 ▼18.12153.84 ▼10.13
Posts /wp-admin/edit.php2,694 ▲33.25 ▲0.0166.02 ▲2.95142.37 ▼4.39
Add New Post /wp-admin/post-new.php1,752 ▼020.99 ▼0.39471.40 ▲10.92159.22 ▲5.75
Media Library /wp-admin/upload.php1,698 ▲35.52 ▼0.04146.97 ▲2.82187.90 ▼7.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: events, community, widgets, dashboard, news

admin-events-extended/admin-events-extended.php Passed 13 tests

The main PHP file in "Admin Events Extended" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Adds further sources of events and news to the Community Events admin dashboard widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected193 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP988441193

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1466.67%
▷ Protected methods00.00%
▷ Private methods733.33%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected