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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.57 ▼22.64 |
Dashboard /wp-admin | 3.11 ▼0.19 | 33.84 ▼25.57 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 29.38 ▼26.07 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.77 | 30.97 ▼78.23 |
Media Library /wp-admin/upload.php | 3.11 ▼0.11 | 28.04 ▼12.00 |
Just in Time Content /wp-admin/options-general.php?page=startfunction_jitc_options | 3.12 | 27.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.16 ▼1.48 | 2.26 ▲0.05 | 48.26 ▼4.47 |
Dashboard /wp-admin | 2,210 ▲22 | 4.83 ▼0.07 | 106.04 ▼15.45 | 43.51 ▼2.46 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 38.35 ▼6.14 | 33.27 ▼13.69 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.33 ▲5.66 | 642.17 ▼121.83 | 55.68 ▲3.65 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.10 ▼0.04 | 105.26 ▼12.21 | 43.69 ▼9.19 |
Just in Time Content /wp-admin/options-general.php?page=startfunction_jitc_options | 1,793 | 2.19 | 29.67 | 33.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 66 | 153 | 315 |
PO File | 1 | 27 | 27 | 78 |
Markdown | 1 | 12 | 0 | 18 |
CSS | 1 | 2 | 3 | 15 |
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 code | 0.35 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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