77% super-background

Code Review | Super Background

WordPress plugin Super Background scored77%from 54 tests.

About plugin

  • Plugin page: super-background
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 8, 2018
  • Latest release: Apr 9, 2018
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: cloned67 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /651 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0222.05 ▼27.04
Dashboard /wp-admin3.41 ▲0.0648.88 ▼0.23
Posts /wp-admin/edit.php3.53 ▲0.1356.12 ▲3.81
Add New Post /wp-admin/post-new.php5.99 ▲0.0684.27 ▼4.63
Media Library /wp-admin/upload.php3.32 ▲0.0434.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,040 ▲30515.06 ▲0.854.83 ▲2.6640.54 ▼4.88
Dashboard /wp-admin2,363 ▲1756.52 ▲0.68123.90 ▲7.5040.87 ▼3.83
Posts /wp-admin/edit.php2,280 ▲1943.48 ▲1.4653.60 ▲16.5832.52 ▼1.39
Add New Post /wp-admin/post-new.php1,531 ▼223.29 ▲0.10649.03 ▼31.6238.66 ▼39.53
Media Library /wp-admin/upload.php1,416 ▲314.09 ▼0.1994.86 ▼7.4246.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

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
You can look at the official 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:
LanguageFilesBlank linesComment linesLines of code
PHP134659382
JavaScript216278
CSS28040
Markdown1506
HTML1001

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 code0.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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