Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.25MB] [CPU: ▼14.32ms] Passed 4 tests
Server-side resources used by LH Multisite Ads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 33.48 ▼7.56 |
Dashboard /wp-admin | 3.39 ▲0.09 | 50.22 ▼4.14 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.59 ▲2.35 |
Add New Post /wp-admin/post-new.php | 4.68 ▼1.21 | 46.70 ▼46.11 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.02 ▲0.55 |
Add New /wp-admin/post-new.php?post_type=lh-multisite-ads | 3.32 | 44.59 |
Post Adverts /wp-admin/edit.php?post_type=lh-multisite-ads | 3.35 | 38.44 |
Settings /wp-admin/edit.php?post_type=lh-multisite-ads&page=lh-multisite-ads/lh-multisite-ads.php | 3.28 | 30.58 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for LH Multisite Ads
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 13.30 ▼1.06 | 4.89 ▲3.06 | 46.58 ▲0.93 |
Dashboard /wp-admin | 2,229 ▲49 | 5.66 ▼0.06 | 89.42 ▲0.47 | 38.16 ▼1.83 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.02 ▼0.02 | 40.51 ▲0.95 | 34.99 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 22.99 ▲5.36 | 575.54 ▼33.45 | 54.00 ▼6.55 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.29 ▼0.03 | 97.75 ▼2.81 | 45.89 ▲0.35 |
Add New /wp-admin/post-new.php?post_type=lh-multisite-ads | 1,554 | 2.55 | 49.75 | 71.83 |
Post Adverts /wp-admin/edit.php?post_type=lh-multisite-ads | 1,103 | 1.93 | 31.49 | 31.37 |
Settings /wp-admin/edit.php?post_type=lh-multisite-ads&page=lh-multisite-ads/lh-multisite-ads.php | 848 | 2.05 | 27.00 | 27.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=lh-multisite-ads
- > Notice in wp-content/plugins/lh-multisite-ads/lh-multisite-ads.php+167
Undefined property: LH_multisite_ads_plugin::$plugin
- > GET request to /wp-admin/post-new.php?post_type=lh-multisite-ads
- > Notice in wp-content/plugins/lh-multisite-ads/lh-multisite-ads.php+167
Trying to get property 'name' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lh-multisite-ads&page=lh-multisite-ads/lh-multisite-ads.php
- > Notice in wp-content/plugins/lh-multisite-ads/partials/option-settings.php+17
Trying to access array offset on value of type bool
- > GET request to /wp-admin/edit.php?post_type=lh-multisite-ads&page=lh-multisite-ads/lh-multisite-ads.php
- > Warning in wp-content/plugins/lh-multisite-ads/partials/option-settings.php+9
implode(): Invalid arguments passed
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lh-multisite-ads&page=lh-multisite-ads/lh-multisite-ads.php
- > Notice in wp-content/plugins/lh-multisite-ads/partials/option-settings.php+15
Undefined property: LH_multisite_ads_plugin::$use_email_field_name
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-multisite-ads/partials/option-settings.php:1
- > 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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: google adsense, advertising, adsense, ads, multisite
lh-multisite-ads/lh-multisite-ads.php Passed 13 tests
The main file in "LH Multisite Ads" v. 1.26 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
Allows you to insert ads after paragraphs of your post content throughout your multisite network
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin300 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 209 | 80 | 300 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 16 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.79% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin