64% just-in-time-content

Code Review | Time Based Content

WordPress plugin Time Based Content scored 64% from 54 tests.

About plugin

  • Plugin page: just-in-time-content
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.6
  • WordPress version: 6.3.1
  • First release: Jan 29, 2021
  • Latest release: Jan 29, 2021
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: eliorivero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 341 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.83MB] [CPU: ▼38.13ms] Passed 4 tests

Analyzing server-side resources used by Time Based Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.57 ▼22.64
Dashboard /wp-admin3.11 ▼0.1933.84 ▼25.57
Posts /wp-admin/edit.php3.12 ▼0.2429.38 ▼26.07
Add New Post /wp-admin/post-new.php3.11 ▼2.7730.97 ▼78.23
Media Library /wp-admin/upload.php3.11 ▼0.1128.04 ▼12.00
Just in Time Content /wp-admin/options-general.php?page=startfunction_jitc_options3.1227.23

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
startfunction_jitc_settings
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Time Based Content
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.16 ▼1.482.26 ▲0.0548.26 ▼4.47
Dashboard /wp-admin2,210 ▲224.83 ▼0.07106.04 ▼15.4543.51 ▼2.46
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0138.35 ▼6.1433.27 ▼13.69
Add New Post /wp-admin/post-new.php1,536 ▲2223.33 ▲5.66642.17 ▼121.8355.68 ▲3.65
Media Library /wp-admin/upload.php1,392 ▲74.10 ▼0.04105.26 ▼12.2143.69 ▼9.19
Just in Time Content /wp-admin/options-general.php?page=startfunction_jitc_options1,7932.1929.6733.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/functions.php+253
    DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given
  • The plugin did not uninstall successfully, leaving 9 files (0.05MB) in the plugin directory
    • (new file) languages/startfunction.pot
    • (new file) css/sf-admin-style.css
    • (new file) languages/startfunction-es_ES.po
    • (new file) README.md
    • (new file) startfunction-admin.php
    • (new file) languages/startfunction-es_ES.mo
    • (new file) just-in-time-content.php
    • (new file) LICENSE
    • (new file) readme.txt
  • Zombie WordPress options were found after uninstall: 7 options
    • startfunction_jitc_settings
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 50 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=startfunction_jitc_options
    • > Warning in wp-includes/functions.php+253
    DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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
3 plugin tags: page, publish, post

just-in-time-content/just-in-time-content.php 92% from 13 tests

Analyzing the main PHP file in "Time Based Content" version 1.0.0
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected426 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP266153315
PO File1272778
Markdown112018
CSS12315

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants3
▷ Global constants3100.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