Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼9.25ms] Passed 4 tests
A check of server-side resources used by Related Posts with thumbnails of Aitu 爱徒社会化相关文章推荐插件
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 39.11 ▼3.04 |
Dashboard /wp-admin | 3.40 ▲0.05 | 46.44 ▼17.51 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.03 ▲1.36 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.71 ▼15.55 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.98 ▼0.90 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
aitu_notify_message_container |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Related Posts with thumbnails of Aitu 爱徒社会化相关文章推荐插件
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.11 ▼1.19 | 2.13 ▲0.22 | 43.15 ▲3.39 |
Dashboard /wp-admin | 2,210 ▲25 | 4.82 ▼1.00 | 111.47 ▲11.82 | 43.42 ▼0.32 |
Posts /wp-admin/edit.php | 2,096 ▲25 | 2.06 ▲0.01 | 39.81 ▲2.11 | 41.50 ▲6.13 |
Add New Post /wp-admin/post-new.php | 1,522 ▲3 | 23.05 ▼0.02 | 648.54 ▼10.24 | 54.04 ▼0.61 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.14 | 96.51 ▼4.48 | 44.98 ▲0.31 |
爱徒相关文章 /wp-admin/aitu-related-posts.php | 26 | 0.44 | 0.08 | 13.44 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/aitu-releated-posts-with-thumbnails/aitu-related-posts.php on line 625
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/aitu-releated-posts-with-thumbnails/aitu-related-posts.php on line 625
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/aitu-releated-posts-with-thumbnails/aitu-related-posts.php on line 625
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/aitu-related-posts.php
- > Network (severe)
wp-admin/aitu-related-posts.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% 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 your attention:
- Screenshots: Screenshot #1 (**汉唐月**) image not found
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
aitu-releated-posts-with-thumbnails/aitu-related-posts.php 77% from 13 tests
The main PHP script in "Related Posts with thumbnails of Aitu 爱徒社会化相关文章推荐插件" version 1.1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("aitu-releated-posts-with-thumbnails.php" instead of "aitu-related-posts.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 84 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected581 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 110 | 88 | 457 |
HTML | 1 | 21 | 0 | 124 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 26.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 50.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 200.42KB | 60.22KB | ▼ 69.95% |