Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼143.79ms] Passed 4 tests
This is a short check of server-side resources used by Hanzi of the Day
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 35.16 ▲10.33 |
Dashboard /wp-admin | 3.09 ▲0.03 | 41.08 ▼10.42 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 42.02 ▼4.87 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 94.31 ▼559.53 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 33.86 ▼0.32 |
Server storage [IO: ▲0.02MB] [DB: ▲0.05MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_hanzi_of_the_day_ordinals |
New WordPress options |
---|
widget_hanzi_of_the_day |
Browser metrics Passed 4 tests
An overview of browser requirements for Hanzi of the Day
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.75 ▲0.07 | 9.82 ▲0.12 | 50.07 ▲1.20 |
Dashboard /wp-admin | 2,970 ▲36 | 5.89 ▼0.04 | 170.08 ▲27.68 | 109.69 ▲4.70 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 70.45 ▲4.03 | 97.54 ▲8.33 |
Add New Post /wp-admin/post-new.php | 1,502 ▼170 | 18.55 ▼0.20 | 373.07 ▲11.69 | 114.37 ▲5.99 |
Media Library /wp-admin/upload.php | 1,822 ▲15 | 5.09 ▲0.05 | 138.21 ▼5.54 | 120.43 ▼1.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5663
wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_hanzi_of_the_day
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hanzi-of-the-day/hanzi-of-the-day.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Screenshot #1 (The widget) image required
hanzi-of-the-day/hanzi-of-the-day.php Passed 13 tests
The main PHP script in "Hanzi of the Day" version 1.0 is automatically included on every request by WordPress
63 characters long description:
A widget that displays a different Chinese character every day.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin133 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 39 | 133 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG images were not found in this plugin