Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.84ms] Passed 4 tests
Server-side resources used by ad Manage
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.16 ▼0.01 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.76 ▼5.71 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.46 ▲1.26 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.64 ▼1.28 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.49 ▼0.36 |
设置广告位置 /wp-admin/options-general.php?page=display_footer_info | 3.23 | 32.87 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 12 new options
New WordPress options |
---|
display_footerinfo_text |
web_description |
web_keyword |
theysaidso_admin_options |
up_ad_text |
widget_recent-comments |
widget_theysaidso_widget |
ad_postion |
widget_recent-posts |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
ad Manage: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.64 ▼1.04 | 4.03 ▲2.11 | 49.39 ▲4.18 |
Dashboard /wp-admin | 2,210 ▲22 | 6.04 ▲0.15 | 106.55 ▼12.93 | 46.15 ▲1.26 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.04 ▲0.02 | 35.28 ▼1.53 | 36.68 ▲2.71 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.54 ▲0.07 | 683.05 ▲30.08 | 54.28 ▲3.24 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.24 ▲0.04 | 98.13 ▼10.04 | 46.10 ▼0.14 |
设置广告位置 /wp-admin/options-general.php?page=display_footer_info | 859 | 2.03 | 26.66 | 58.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 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/admanage/adManage_plugins.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== admanage ===
)
admanage/adManage_plugins.php 92% from 13 tests
This is the main PHP file of "ad Manage" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("admanage.php" instead of "adManage_plugins.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin167 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 29 | 167 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 9 | |
▷ Named functions | 9 | 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
No PNG images were found in this plugin