89% noindex-past-events

Code Review | noindex Past Events for The Events Calendar

WordPress plugin noindex Past Events for The Events Calendar scored89%from 54 tests.

About plugin

  • Plugin page: noindex-past-events
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 10, 2016
  • Latest release: Dec 16, 2021
  • Number of updates: 15
  • Update frequency: every 123.8 days
  • Top authors: room34 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by noindex Past Events for The Events Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.41 ▲4.37
Dashboard /wp-admin3.32 ▲0.0144.40 ▲0.06
Posts /wp-admin/edit.php3.37 ▲0.0146.61 ▼0.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.70 ▲0.02
Media Library /wp-admin/upload.php3.24 ▲0.0134.29 ▲0.80

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
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by noindex Past Events for The Events Calendar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.42 ▼0.171.64 ▲0.0447.47 ▲5.16
Dashboard /wp-admin2,216 ▲385.65 ▲0.0190.78 ▼15.1540.24 ▼4.00
Posts /wp-admin/edit.php2,119 ▲192.00 ▲0.0238.99 ▼1.9537.01 ▲4.70
Add New Post /wp-admin/post-new.php1,546 ▲1823.01 ▲0.07645.55 ▼17.8157.04 ▲7.99
Media Library /wp-admin/upload.php1,418 ▲154.20 ▲0.0598.33 ▼12.5544.28 ▼6.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 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
4 plugin tags: the events calendar, past events, noindex, search engines

noindex-past-events/noindex-past-events.php 85% from 13 tests

"noindex Past Events for The Events Calendar" version 1.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1133243

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.71
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%
Functions4
▷ Named functions4100.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 images were found in this plugin