Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.18MB] [CPU: ▼17.51ms] Passed 4 tests
An overview of server-side resources used by Promotional Timer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.43 ▼2.60 |
Dashboard /wp-admin | 3.13 ▼0.22 | 33.33 ▼28.26 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 39.43 ▼7.65 |
Add New Post /wp-admin/post-new.php | 5.51 ▼0.39 | 69.87 ▼31.51 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 31.52 ▲0.23 |
Dashboard /wp-admin/admin.php?page=sn-pt-dashboard | 3.27 | 38.91 |
Settings /wp-admin/admin.php?page=sn-pt-settings | 3.27 | 38.73 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Promotional Timer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲72 | 14.68 ▲0.30 | 1.65 ▼0.09 | 39.52 ▼3.45 |
Dashboard /wp-admin | 2,227 ▲53 | 5.62 ▼0.04 | 94.42 ▲1.75 | 71.23 ▲28.32 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.08 ▲0.12 | 38.77 ▲2.47 | 35.08 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,555 ▲26 | 23.11 ▼0.16 | 686.23 ▲49.48 | 51.01 ▼2.08 |
Media Library /wp-admin/upload.php | 1,444 ▲44 | 4.29 ▲0.11 | 100.71 ▼5.59 | 73.02 ▲30.45 |
Dashboard /wp-admin/admin.php?page=sn-pt-dashboard | 848 | 1.83 | 26.62 | 36.70 |
Settings /wp-admin/admin.php?page=sn-pt-settings | 884 | 1.71 | 25.49 | 41.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SN_PT_INIT::uninstall_plugin_data() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sn-pt-settings
- > Notice in wp-content/plugins/promotional-timer/includes/class.sn-pt-init.php+136
Undefined variable: _SESSION
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sn-pt-settings
- > Notice in wp-content/plugins/promotional-timer/includes/class.sn-pt-init.php+129
Trying to access array offset on value of type null
SRP 50% from 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 following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SN_PT_INIT' not found in wp-content/plugins/promotional-timer/templates/setting/navigation.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2 in promotional-timer/assets to your readme.txt
promotional-timer/init.php 92% from 13 tests
"Promotional Timer" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("promotional-timer.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,589 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 131 | 250 | 924 |
CSS | 2 | 7 | 15 | 369 |
PHP | 8 | 90 | 138 | 296 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 4 | 18.18% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.82KB | 0.81KB | ▼ 1.31% |