83% wp-backpack

Code Review | WP Backpack

WordPress plugin WP Backpack scored83%from 54 tests.

About plugin

  • Plugin page: wp-backpack
  • Plugin version: 2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Aug 11, 2015
  • Latest release: Jun 17, 2021
  • Number of updates: 81
  • Update frequency: every 26.4 days
  • Top authors: ckerfurt (98.77%)bloggingwelt (2.47%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /7,555 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▲2.42ms] Passed 4 tests

A check of server-side resources used by WP Backpack
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.98 ▲1.19
Dashboard /wp-admin3.39 ▲0.0855.35 ▲0.01
Posts /wp-admin/edit.php3.44 ▲0.0855.06 ▲4.37
Add New Post /wp-admin/post-new.php5.97 ▲0.08103.48 ▲4.12
Media Library /wp-admin/upload.php3.31 ▲0.0846.92 ▲11.33
Informationen /wp-admin/admin.php?page=informationen3.2840.36
Optik /wp-admin/admin.php?page=optik3.3849.00
Ähnliche Beiträge /wp-admin/admin.php?page=beitrag3.2845.15
WP Plugin Tipps /wp-admin/admin.php?page=tipps3.2943.57
Technik /wp-admin/admin.php?page=technik3.2935.17

Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

WP Backpack: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲10814.35 ▼0.052.01 ▲0.1742.56 ▼1.98
Dashboard /wp-admin2,253 ▲765.59 ▼0.0091.47 ▲6.5765.95 ▲27.67
Posts /wp-admin/edit.php2,155 ▲552.03 ▲0.0636.71 ▼3.4236.78 ▲1.70
Add New Post /wp-admin/post-new.php1,589 ▲6121.07 ▼1.99737.61 ▲53.5553.90 ▼9.23
Media Library /wp-admin/upload.php1,455 ▲524.29 ▲0.1699.56 ▼13.4872.23 ▲28.56
Informationen /wp-admin/admin.php?page=informationen9921.7923.8030.25
Optik /wp-admin/admin.php?page=optik1,3671.8228.1239.08
Ähnliche Beiträge /wp-admin/admin.php?page=beitrag9691.8223.4034.92
WP Plugin Tipps /wp-admin/admin.php?page=tipps1,0141.7323.9329.06
Technik /wp-admin/admin.php?page=technik1,0881.7022.4629.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-backpack/functions/ranking/ranking.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-backpack/wp-backpack-technik.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-backpack/wp-backpack-info.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-backpack/functions/ip/ip.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-backpack/wp-backpack-beitrag.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-backpack/functions/shortcodes/shortcodes.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-backpack/wp-backpack-tipps.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-backpack/functions/umbenennen/umbenennen.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-backpack/functions/jpg-komprimierung/jpg-komprimierung-75.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-backpack/functions/jpg-komprimierung/jpg-komprimierung-standard.php:7

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (60 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-backpack/main.php 85% from 13 tests

This is the main PHP file of "WP Backpack" version 2.1, 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:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-backpack.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,247 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP372792911,874
JavaScript1130222
CSS2273151

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity59.50
▷ Minimum class complexity10.00
▷ Maximum class complexity109.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions50
▷ Named functions4488.00%
▷ Anonymous functions612.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 2.20MB with 1.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
pictures/logo_blau.png8.49KB3.82KB▼ 55.00%
functions/latest-post-shortcode/assets/images/post_tiles5.png29.25KB10.32KB▼ 64.72%
functions/latest-post-shortcode/assets/images/post_tiles1.png29.09KB10.65KB▼ 63.38%
pictures/menu_icon.png16.44KB0.73KB▼ 95.55%
pictures/google.png1.59KB1.58KB▼ 0.98%