Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.21ms] Passed 4 tests
Server-side resources used by What's New Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.80 ▲2.11 |
Dashboard /wp-admin | 3.38 ▲0.07 | 49.81 ▲0.48 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.02 ▲4.19 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 100.84 ▼4.01 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.40 ▲0.60 |
What's New 設定 /wp-admin/options-general.php?page=whats-new-genarator/whats-new-generator.php | 3.28 | 46.01 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
whats_new_options |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by What's New Generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 14.48 ▲0.12 | 1.60 ▼0.60 | 44.31 ▼2.96 |
Dashboard /wp-admin | 2,212 ▲24 | 5.76 ▲0.86 | 109.44 ▼3.16 | 49.22 ▲3.34 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▲0.00 | 40.63 ▲3.85 | 44.57 ▲9.43 |
Add New Post /wp-admin/post-new.php | 1,533 ▲122 | 23.13 ▲5.05 | 677.05 ▼176.69 | 59.76 ▼1.54 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.13 ▼0.06 | 110.28 ▼6.90 | 52.15 ▲1.26 |
What's New 設定 /wp-admin/options-general.php?page=whats-new-genarator/whats-new-generator.php | 947 | 2.07 | 34.85 | 117.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- whats_new_options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/whats-new-genarator/whatsnew-view.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: shortcode in wp-content/plugins/whats-new-genarator/admin-view.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/whats-new-genarator/whats-new-generator.php:46
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/whats-new-genarator/whatsnew-view.php on line 7
- > PHP Notice
Trying to get property 'title' of non-object in wp-content/plugins/whats-new-genarator/whatsnew-view.php on line 2
- > PHP Notice
Undefined variable: info in wp-content/plugins/whats-new-genarator/whatsnew-view.php on line 7
- > PHP Notice
Undefined variable: info in wp-content/plugins/whats-new-genarator/whatsnew-view.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/whats-new-genarator/admin-view.php:12
- > PHP Notice
Trying to get property 'items' of non-object in wp-content/plugins/whats-new-genarator/whatsnew-view.php on line 7
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI ("")
whats-new-genarator/whats-new-generator.php 92% from 13 tests
The principal PHP file in "What's New Generator" v. 2.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("whats-new-genarator.php" instead of "whats-new-generator.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 plugin336 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 38 | 9 | 277 |
CSS | 1 | 8 | 0 | 59 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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