Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.12ms] Passed 4 tests
An overview of server-side resources used by Sponsored Post Hinweis
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.87 ▼1.18 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.26 ▼9.69 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.09 ▼3.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.23 ▼2.28 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.04 ▲2.87 |
Sponsored Post Hinweis Optionen /wp-admin/options-general.php?page=sponsoredFunktionen | 3.19 | 27.93 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Sponsored Post Hinweis
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.25 ▼1.36 | 1.69 ▲0.04 | 44.30 ▲0.50 |
Dashboard /wp-admin | 2,207 ▲33 | 5.83 ▲0.93 | 94.42 ▼11.72 | 40.34 ▼0.56 |
Posts /wp-admin/edit.php | 2,072 ▼17 | 2.00 ▼0.00 | 36.82 ▼0.41 | 32.11 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 22.96 ▼0.15 | 650.63 ▼41.49 | 60.68 ▲2.16 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.05 | 93.65 ▼7.04 | 43.84 ▼2.08 |
Sponsored Post Hinweis Optionen /wp-admin/options-general.php?page=sponsoredFunktionen | 837 | 2.02 | 22.65 | 24.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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 errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sponsoredFunktionen
- > Notice in wp-content/plugins/sponsored-post-hinweis/contenthinweis.php+122
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=sponsoredFunktionen
- > Notice in wp-content/plugins/sponsored-post-hinweis/contenthinweis.php+128
Undefined variable: outputa
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sponsored-post-hinweis/contenthinweis.php:71
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== sponsored-post-hinweis ===
)
sponsored-post-hinweis/contenthinweis.php 85% from 13 tests
The main PHP script in "Sponsored Post Hinweis" version 1.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sponsored-post-hinweis.php" instead of "contenthinweis.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 281 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin104 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 7 | 23 | 104 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin