89% simply-event-blog

Code Review | Simply Event Blog

WordPress plugin Simply Event Blog scored89%from 54 tests.

About plugin

  • Plugin page: simply-event-blog
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 15, 2020
  • Latest release: Jul 29, 2021
  • Number of updates: 12
  • Update frequency: every 65.1 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Simply Event Blog
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.08 ▼10.10
Dashboard /wp-admin3.32 ▼0.0253.49 ▼13.80
Posts /wp-admin/edit.php3.37 ▲0.0251.63 ▼0.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.83 ▼15.20
Media Library /wp-admin/upload.php3.24 ▲0.0233.87 ▼1.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simply Event Blog
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.65 ▼0.731.76 ▼0.0443.92 ▼0.81
Dashboard /wp-admin2,216 ▲285.10 ▼0.78108.52 ▼5.9636.61 ▼9.19
Posts /wp-admin/edit.php2,109 ▲202.25 ▲0.2436.90 ▲0.7831.82 ▼2.57
Add New Post /wp-admin/post-new.php6,263 ▲4,73519.00 ▲0.72924.86 ▲271.8765.04 ▲15.53
Media Library /wp-admin/upload.php1,404 ▲164.28 ▲0.0699.69 ▼4.5042.82 ▼4.52

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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)
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
  • Plugin Name: You should set the name of your plugin on the first line ( === simply-event-blog === )
You can take inspiration from this readme.txt

simply-event-blog/simply-event-blog.php Passed 13 tests

The primary PHP file in "Simply Event Blog" version 0.1 is used by WordPress to initiate all plugin functionality
30 characters long description:
Adds events features to posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected432 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP10117484281
CSS2128117
JavaScript37834

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2177.78%
▷ Protected methods00.00%
▷ Private methods622.22%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin