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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.05ms] Passed 4 tests
A check of server-side resources used by WPCopyRights网站防复制插件
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.63 ▲0.18 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.23 ▼4.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.31 ▲5.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.90 ▼2.49 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.51 ▲2.42 |
WPCopyRights设置 /wp-admin/tools.php?page=wpcopyrights/index.php | 3.20 | 31.24 |
Server storage [IO: ▲1.64MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
wp_copy_rights_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WPCopyRights网站防复制插件
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.26 ▼1.15 | 4.52 ▲2.54 | 43.07 ▼1.75 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.00 | 108.92 ▲3.87 | 44.38 ▲4.44 |
Posts /wp-admin/edit.php | 2,093 ▲22 | 2.02 ▼0.01 | 40.60 ▲4.21 | 40.75 ▲3.60 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.31 ▲5.71 | 580.26 ▼58.44 | 51.40 ▼6.29 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.01 | 98.09 ▼8.15 | 45.29 ▼0.32 |
WPCopyRights设置 /wp-admin/tools.php?page=wpcopyrights/index.php | 1,397 | 1.80 | 40.70 | 150.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wpcopyrights/index.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: No tags were detected
- Screenshots: A description for screenshot #2 is required in wpcopyrights/assets to your readme.txt
wpcopyrights/index.php 92% from 13 tests
The principal PHP file in "WPCopyRights网站防复制插件" v. 5.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpcopyrights.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected766 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 10 | 556 |
SVG | 1 | 356 | 3 | 195 |
JavaScript | 6 | 0 | 5 | 9 |
CSS | 6 | 0 | 4 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.80 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
layui/images/footer_logo.png | 24.74KB | 0.87KB | ▼ 96.48% |
layui/css/modules/layer/default/icon.png | 11.22KB | 4.36KB | ▼ 61.19% |
layui/css/modules/layer/default/icon-ext.png | 5.77KB | 2.91KB | ▼ 49.62% |
layui/images/qrcode.png | 72.54KB | 12.37KB | ▼ 82.94% |
layui/images/logo.png | 24.44KB | 0.95KB | ▼ 96.10% |