83% super-simple-events-list

Code Review | Super Simple Events List

WordPress plugin Super Simple Events List scored83%from 54 tests.

About plugin

  • Plugin page: super-simple-even...
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.5
  • WordPress version: 6.3.1
  • First release: Aug 18, 2020
  • Latest release: Sep 12, 2020
  • Number of updates: 4
  • Update frequency: every 6.3 days
  • Top authors: betacore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /358 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.22ms] Passed 4 tests

This is a short check of server-side resources used by Super Simple Events List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.82 ▼5.87
Dashboard /wp-admin3.33 ▼0.0150.54 ▼23.15
Posts /wp-admin/edit.php3.39 ▲0.0351.57 ▲2.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.66 ▼0.53
Media Library /wp-admin/upload.php3.26 ▲0.0336.64 ▲0.69
Shortcodes /wp-admin/edit.php?post_type=bcssel_events&page=bcssel_shortcodes3.2233.96
All Events /wp-admin/edit.php?post_type=bcssel_events3.3133.36
New /wp-admin/post-new.php?post_type=bcssel_events3.3746.03

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Super Simple Events List
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9214.39 ▼0.081.77 ▼0.0944.96 ▲1.86
Dashboard /wp-admin2,239 ▲515.10 ▲0.19102.33 ▼14.0039.81 ▼6.76
Posts /wp-admin/edit.php2,122 ▲332.07 ▲0.0839.09 ▲1.8135.53 ▲1.12
Add New Post /wp-admin/post-new.php1,565 ▲3318.20 ▼5.18636.25 ▲4.0759.65 ▲3.45
Media Library /wp-admin/upload.php1,424 ▲364.21 ▲0.03100.66 ▼3.4543.28 ▼2.11
Shortcodes /wp-admin/edit.php?post_type=bcssel_events&page=bcssel_shortcodes8952.0321.9939.17
All Events /wp-admin/edit.php?post_type=bcssel_events1,1021.9332.6631.68
New /wp-admin/post-new.php?post_type=bcssel_events2,3187.68164.7861.48

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-simple-events-list/includes/init.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-simple-events-list/includes/init.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/super-simple-events-list/includes/content.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-simple-events-list/includes/docs.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/super-simple-events-list/includes/shortcode.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-simple-events-list/includes/wpadmin.php:12

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 79% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Requires php: Invalid version format
  • Screenshots: These screenshots require images: #1 (Create an event like any other post type. Just add a date, time, venue and location.), #2 (When published the event is visible and extra details are put above the the_content();.), #3 (There is also some help with the shortcodes if needed.), #4 (A list of your events in the WP-admin), #5 (The output of the shortcode, this is the list. Simple!)
The official readme.txt might help

super-simple-events-list/ssel.php 69% from 13 tests

The principal PHP file in "Super Simple Events List" v. 0.9 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("super-simple-events-list.php" instead of "ssel.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/lang" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin540 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP616648462
CSS215278

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions17
▷ Named functions17100.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
5 PNG files occupy 0.49MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png125.75KB32.88KB▼ 73.85%
screenshot-2.png61.08KB18.36KB▼ 69.94%
screenshot-3.png102.03KB31.69KB▼ 68.94%
screenshot-4.png100.79KB30.66KB▼ 69.58%
screenshot-1.png110.26KB33.29KB▼ 69.80%