90% community-events-privacy

Code Review | Community Events Privacy

WordPress plugin Community Events Privacy scored90%from 54 tests.

About plugin

  • Plugin page: community-events-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: May 19, 2017
  • Latest release: May 20, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: coreymckrill (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,072 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Community Events Privacy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.45 ▲9.74
Dashboard /wp-admin3.31 ▲0.0147.96 ▲0.74
Posts /wp-admin/edit.php3.36 ▲0.0048.73 ▼1.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.23 ▲6.12
Media Library /wp-admin/upload.php3.23 ▲0.0034.12 ▲1.05

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

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

Browser metrics Passed 4 tests

Community Events Privacy: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.57 ▼0.806.25 ▲4.1542.22 ▲0.23
Dashboard /wp-admin2,203 ▲155.84 ▲0.9398.44 ▼4.0238.04 ▼2.52
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0238.17 ▲0.4034.49 ▲1.58
Add New Post /wp-admin/post-new.php1,514 ▼517.85 ▼5.47662.76 ▲9.9556.07 ▲7.05
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.1093.93 ▼0.8742.65 ▲2.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
2 plugin tags: privacy, community-events

community-events-privacy/index.php 92% from 13 tests

Analyzing the main PHP file in "Community Events Privacy" version 0.1
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("community-events-privacy.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14269

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin