Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/random-look/random-look.php+39
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.80ms] Passed 4 tests
An overview of server-side resources used by Random Look
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.29 ▼10.31 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.06 ▼12.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.45 ▼3.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.10 ▼13.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.54 ▼0.84 |
随便看看设置 /wp-admin/options-general.php?page=random-look/random-look.php | 3.20 | 32.63 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
random_look_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Random Look
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.40 ▼0.18 | 2.14 ▲0.21 | 45.01 ▲2.96 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼0.06 | 105.14 ▼12.61 | 48.24 ▲2.93 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.18 ▲0.19 | 35.71 ▼3.28 | 40.18 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.02 ▲5.63 | 632.28 ▼47.02 | 74.38 ▲9.12 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.17 ▼0.00 | 97.96 ▲0.87 | 46.67 ▼0.24 |
随便看看设置 /wp-admin/options-general.php?page=random-look/random-look.php | 828 | 2.02 | 24.95 | 67.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/random-look/random-look.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
random-look/random-look.php Passed 13 tests
This is the main PHP file of "Random Look" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
添加随便看看,顾名思义就是随机给出文章来看看,很小但很实用。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin133 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 12 | 9 | 113 |
Markdown | 1 | 16 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot-1.png | 36.97KB | 0.00KB | ▼ 100.00% |