Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/happy-new-year/happynewyear.php+65
Use of undefined constant wp_head - assumed 'wp_head' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.95MB] [CPU: ▼57.07ms] Passed 4 tests
An overview of server-side resources used by Happy New Year
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.35 ▼35.77 |
Dashboard /wp-admin | 2.07 ▼1.27 | 5.71 ▼60.17 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 5.39 ▼42.75 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.25 ▼89.57 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 6.00 ▼30.54 |
Server storage [IO: ▲2.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Happy New Year
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,124 ▲378 | 13.67 ▼0.70 | 13.13 ▲11.22 | 45.73 ▲1.68 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.01 | 96.66 ▼5.61 | 37.06 ▼5.22 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.01 ▲0.01 | 35.16 ▼0.64 | 32.85 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.63 ▼5.81 | 701.45 ▲90.44 | 63.65 ▲1.50 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.23 ▼0.01 | 95.20 ▼7.39 | 41.45 ▼6.12 |
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
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/happy-new-year/happynewyear.php+65
Use of undefined constant wp_head - assumed 'wp_head' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/happy-new-year/happynewyear.php:65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: happy christmas, countdown, happy new year, merry christmas, song...
happy-new-year/happynewyear.php 92% from 13 tests
Analyzing the main PHP file in "Happy New Year" version 5.0
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("happy-new-year.php" instead of "happynewyear.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
Success! There were no dangerous files found in this plugin597 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 61 | 30 | 552 |
PHP | 1 | 9 | 12 | 45 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 1 | |
▷ Named functions | 1 | 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
3 PNG files occupy 0.31MB with 0.22MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
rightimg.png | 104.16KB | 26.92KB | ▼ 74.16% |
leftimg.png | 93.68KB | 25.02KB | ▼ 73.29% |
centerimg.png | 115.55KB | 37.82KB | ▼ 67.27% |