79% bp-template-overloader

Code Review | BP Template Overloader

WordPress plugin BP Template Overloader scored79%from 54 tests.

About plugin

  • Plugin page: bp-template-overl...
  • Plugin version: 1.0.10
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 28, 2018
  • Latest release: Feb 11, 2021
  • Number of updates: 60
  • Update frequency: every 17.5 days
  • Top authors: Venutius (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,888 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.98ms] Passed 4 tests

Server-side resources used by BP Template Overloader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.12 ▼2.98
Dashboard /wp-admin3.35 ▲0.0458.46 ▲10.02
Posts /wp-admin/edit.php3.40 ▲0.0446.63 ▼6.42
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.17 ▼5.49
Media Library /wp-admin/upload.php3.27 ▲0.0437.19 ▲2.97

Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • You have illegally modified 2 files (0.00KB) outside of "wp-content/plugins/bp-template-overloader/" and "wp-content/uploads/"
    • (new file) wp-content/bp-template-overloads/bp-legacy/.empty
    • (new file) wp-content/bp-template-overloads/bp-nouveau/.empty
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

BP Template Overloader: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.40 ▲0.191.64 ▼0.4740.75 ▼8.24
Dashboard /wp-admin2,209 ▲215.83 ▼0.06120.53 ▲3.4548.15 ▲2.69
Posts /wp-admin/edit.php2,095 ▲92.01 ▲0.0152.00 ▲10.8836.60 ▼3.61
Add New Post /wp-admin/post-new.php1,541 ▲822.69 ▼0.53634.55 ▼27.8275.13 ▼2.67
Media Library /wp-admin/upload.php1,397 ▲94.22 ▼0.03103.94 ▼10.8647.26 ▼2.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/bp-template-overloader/uninstall.php+7
    unlink(wp-content/bp-template-overloads/): Is a directory
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Donate link: Invalid URI found ("paypal.me/GeorgeChaplin")
You can look at the official readme.txt

bp-template-overloader/loader.php 92% from 13 tests

The main PHP file in "BP Template Overloader" ver. 1.0.10 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-template-overloader.php" instead of "loader.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 plugin8,998 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,3096625,508
PHP74292002,626
CSS313522864

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity5.88
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.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
9 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/red-d.png4.12KB1.57KB▼ 61.99%
images/green-e.png4.12KB1.68KB▼ 59.24%
images/blue-e.png4.12KB1.63KB▼ 60.42%
images/red-v.png4.12KB1.69KB▼ 58.90%
images/green-r.png4.12KB1.72KB▼ 58.15%