Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.17ms] Passed 4 tests
An overview of server-side resources used by OtFm Countdown to New Year block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.65 ▼1.00 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.77 ▼13.05 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.30 ▼1.03 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.10 | 87.11 ▲3.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 35.45 ▲2.40 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for OtFm Countdown to New Year block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,966 ▲231 | 14.98 ▲0.76 | 26.72 ▲24.87 | 45.79 ▼4.24 |
Dashboard /wp-admin | 2,206 ▲21 | 5.86 ▼0.04 | 104.85 ▼9.95 | 39.46 ▼5.13 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 39.27 ▲0.02 | 37.52 ▲5.65 |
Add New Post /wp-admin/post-new.php | 6,360 ▲4,846 | 27.93 ▲10.34 | 824.81 ▲152.55 | 36.14 ▼24.77 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.22 ▲0.02 | 95.96 ▼0.85 | 41.00 ▲0.43 |
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
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Invalid version format
otfm-countdown-to-new-year-block/otfm-countdown-to-new-year-block.php Passed 13 tests
The primary PHP file in "OtFm Countdown to New Year block" version 1.0.3 is used by WordPress to initiate all plugin functionality
75 characters long description:
For new block editor (Gutenberg) countdown to new year. Block for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin555 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 33 | 30 | 412 |
PHP | 2 | 22 | 42 | 60 |
Markdown | 1 | 36 | 0 | 50 |
CSS | 1 | 0 | 0 | 33 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected