Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.28ms] Passed 4 tests
Server-side resources used by Super Background
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 22.05 ▼27.04 |
Dashboard /wp-admin | 3.41 ▲0.06 | 48.88 ▼0.23 |
Posts /wp-admin/edit.php | 3.53 ▲0.13 | 56.12 ▲3.81 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.06 | 84.27 ▼4.63 |
Media Library /wp-admin/upload.php | 3.32 ▲0.04 | 34.94 ▼1.22 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Super Background
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,040 ▲305 | 15.06 ▲0.85 | 4.83 ▲2.66 | 40.54 ▼4.88 |
Dashboard /wp-admin | 2,363 ▲175 | 6.52 ▲0.68 | 123.90 ▲7.50 | 40.87 ▼3.83 |
Posts /wp-admin/edit.php | 2,280 ▲194 | 3.48 ▲1.46 | 53.60 ▲16.58 | 32.52 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.29 ▲0.10 | 649.03 ▼31.62 | 38.66 ▼39.53 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.09 ▼0.19 | 94.86 ▼7.42 | 46.72 ▲0.37 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/super-background/css/view_page.css.php
- > /wp-content/plugins/super-background/index.php
- > /wp-content/plugins/super-background/page_header.php
- > /wp-content/plugins/super-background/main.php
- > /wp-content/plugins/super-background/css/admin_page.css.php
- > /wp-content/plugins/super-background/js/SuperBackground-admin.js.php
- > /wp-content/plugins/super-background/js/SuperBackground.js.php
- > /wp-content/plugins/super-background/page_footer.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function SuperBackGroundAdmin\\getAdminTitle() in wp-content/plugins/super-background/page_content.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
- Screenshots: A description for screenshot #1 is required in super-background/assets to your readme.txt
super-background/main.php 77% from 13 tests
"Super Background" version 0.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/lnggs")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-background.php" instead of "main.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin507 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 46 | 59 | 382 |
JavaScript | 2 | 16 | 2 | 78 |
CSS | 2 | 8 | 0 | 40 |
Markdown | 1 | 5 | 0 | 6 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.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 | 32 | |
▷ Named functions | 32 | 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 files were detected