84% update-intervals

Code Review | Update Intervals

WordPress plugin Update Intervals scored84%from 54 tests.

About plugin

  • Plugin page: update-intervals
  • Plugin version: 1.04
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Nov 24, 2020
  • Latest release: Nov 2, 2023
  • Number of updates: 16
  • Update frequency: every 67.1 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

This is a short check of server-side resources used by Update Intervals
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.02 ▼1.91
Dashboard /wp-admin3.36 ▲0.0146.61 ▼17.28
Posts /wp-admin/edit.php3.41 ▲0.0550.27 ▲5.09
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.72 ▲10.61
Media Library /wp-admin/upload.php3.28 ▲0.0536.36 ▲1.53
Update intervals /wp-admin/index.php?page=updateintervals3.2532.15

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Update Intervals
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.23 ▼0.091.92 ▲0.1844.44 ▲2.34
Dashboard /wp-admin2,202 ▲245.62 ▼0.0995.05 ▼21.9842.08 ▼1.80
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0440.28 ▲3.3235.88 ▲2.41
Add New Post /wp-admin/post-new.php1,532 ▲623.47 ▲0.30632.43 ▼37.8050.47 ▼6.45
Media Library /wp-admin/upload.php1,401 ▼24.28 ▲0.0598.30 ▼0.2743.46 ▲1.01
Update intervals /wp-admin/index.php?page=updateintervals1,0341.9623.4927.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/update-intervals/lib/class-updateintervals.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/update-intervals/lib/class-updateintervals.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: themes, core, update, plugins

update-intervals/updateintervals.php 92% from 13 tests

The entry point to "Update Intervals" version 1.04 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("update-intervals.php" instead of "updateintervals.php")

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
No dangerous file extensions were detected239 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23597239

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.41
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity6.57
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin