84% bns-corner-logo

Code Review | BNS Corner Logo

WordPress plugin BNS Corner Logo scored 84% from 54 tests.

About plugin

  • Plugin page: bns-corner-logo
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Sep 2, 2009
  • Latest release: Apr 10, 2016
  • Number of updates: 48
  • Update frequency: every 50.3 days
  • Top authors: cais (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active / 50,744 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.91ms] Passed 4 tests

Server-side resources used by BNS Corner Logo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.33 ▼1.50
Dashboard /wp-admin3.41 ▲0.1147.94 ▼5.18
Posts /wp-admin/edit.php3.46 ▲0.1048.33 ▼0.56
Add New Post /wp-admin/post-new.php5.99 ▲0.1196.07 ▼4.41
Media Library /wp-admin/upload.php3.33 ▲0.1038.94 ▲6.01

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_bns-corner-logo

Browser metrics Passed 4 tests

Checking browser requirements for BNS Corner Logo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲19613.61 ▼0.808.64 ▲6.7941.30 ▼2.67
Dashboard /wp-admin2,254 ▲624.84 ▼1.05110.11 ▲4.5442.39 ▼1.86
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0939.27 ▼3.5236.17 ▼0.97
Add New Post /wp-admin/post-new.php1,528 ▲718.48 ▼4.54635.55 ▼11.8562.14 ▲13.00
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0993.27 ▼7.6341.85 ▲0.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_bns-corner-logo
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bns-corner-logo/bns-corner-logo.php:51

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: multiple widgets, multisite compatible, gravatar, image, widget-only...

bns-corner-logo/bns-corner-logo.php 92% from 13 tests

The primary PHP file in "BNS Corner Logo" version 2.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin440 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1138334296
PO File1343796
CSS194545
JavaScript11283

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin