90% admin-events-extended

Code Review | Admin Events Extended

WordPress plugin Admin Events Extended scored90%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: 6.3.1
  • 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 /918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.10ms] Passed 4 tests

An overview of server-side resources used by Admin Events Extended
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.38 ▼0.91
Dashboard /wp-admin3.35 ▲0.0448.71 ▲0.55
Posts /wp-admin/edit.php3.46 ▲0.1047.97 ▼7.38
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.74 ▼8.65
Media Library /wp-admin/upload.php3.27 ▲0.0436.44 ▲1.85

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Admin Events Extended
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.38 ▼0.161.93 ▲0.2842.93 ▼0.79
Dashboard /wp-admin2,195 ▲185.66 ▲0.0596.82 ▲4.5046.27 ▼2.36
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0539.58 ▼0.3938.63 ▼7.30
Add New Post /wp-admin/post-new.php1,526 ▼223.24 ▲0.25639.15 ▼77.4451.24 ▼2.34
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0097.01 ▼14.3145.25 ▼2.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: events, community, widgets, news, dashboard

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

Analyzing the main PHP file in "Admin Events Extended" version 0.0.1
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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin193 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP988441193

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued 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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected