10% binlayercom-blog-banner

Code Review | Binlayer.com Blog-Banner

WordPress plugin Binlayer.com Blog-Banner scored 10% from 54 tests.

About plugin

  • Plugin page: binlayercom-blog-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2014
  • Latest release: Mar 10, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: blank-online.eu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 777 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/binlayercom-blog-banner/binlayer.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; BannerBinlayerWidget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼54.52ms] Passed 4 tests

An overview of server-side resources used by Binlayer.com Blog-Banner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.62 ▼35.25
Dashboard /wp-admin2.08 ▼1.235.57 ▼43.07
Posts /wp-admin/edit.php2.08 ▼1.286.18 ▼43.97
Add New Post /wp-admin/post-new.php2.08 ▼3.815.47 ▼95.78
Media Library /wp-admin/upload.php2.08 ▼1.155.56 ▼28.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Binlayer.com Blog-Banner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.361.70 ▲0.0244.21 ▼2.33
Dashboard /wp-admin2,206 ▲154.86 ▼0.05112.74 ▲8.0244.74 ▲2.25
Posts /wp-admin/edit.php2,068 ▼242.05 ▲0.0534.99 ▼5.1630.75 ▼5.63
Add New Post /wp-admin/post-new.php1,533 ▼023.53 ▲0.37682.56 ▼95.6457.50 ▼6.17
Media Library /wp-admin/upload.php1,382 ▼64.25 ▼0.0899.21 ▼13.8845.00 ▼5.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/binlayercom-blog-banner/binlayer.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; BannerBinlayerWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_bannerbinlayerwidget
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/binlayercom-blog-banner/binlayer.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: binlayer, ads, banner

binlayercom-blog-banner/binlayer.php 92% from 13 tests

The principal PHP file in "Binlayer.com Blog-Banner" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("binlayercom-blog-banner.php" instead of "binlayer.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
No dangerous file extensions were detected47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161047

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin