Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.93ms] Passed 4 tests
Analyzing server-side resources used by Dynamic Year Block – display a copyright notice in your footer with the current year
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.80 ▲0.84 |
Dashboard /wp-admin | 3.33 ▼0.01 | 43.04 ▼20.33 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.76 ▼9.20 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.32 ▼11.03 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.70 ▲2.35 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Dynamic Year Block – display a copyright notice in your footer with the current year
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.25 ▼0.20 | 1.66 ▲0.07 | 38.49 ▼2.01 |
Dashboard /wp-admin | 2,192 ▲12 | 5.71 ▲0.03 | 84.40 ▼0.83 | 36.29 ▼2.87 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▼0.02 | 38.74 ▲3.00 | 35.88 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,535 ▼2 | 23.05 ▲4.76 | 686.67 ▲57.30 | 57.22 ▼10.15 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.03 | 101.38 ▲6.05 | 43.38 ▼0.40 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: year, dynamic, block, date, copyright...
dynamic-year-block/dynamic-year-block.php Passed 13 tests
The main PHP file in "Dynamic Year Block – display a copyright notice in your footer with the current year" ver. 0.6.2 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
A block that always displays the current year in your copyright footer notice.
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
Success! There were no dangerous files found in this plugin488 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 40 | 88 | 212 |
JSON | 2 | 0 | 0 | 87 |
PO File | 1 | 30 | 39 | 85 |
PHP | 2 | 20 | 52 | 67 |
Markdown | 1 | 15 | 0 | 37 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin