90% blogwings-companion

Code Review | BlogWings Companion

WordPress plugin BlogWings Companion scored90%from 54 tests.

About plugin

  • Plugin page: blogwings-companion
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2018
  • Latest release: Apr 3, 2019
  • Number of updates: 9
  • Update frequency: every 38.8 days
  • Top authors: blogwings (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,924 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲0.02ms] Passed 4 tests

A check of server-side resources used by BlogWings Companion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0648.57 ▲2.96
Dashboard /wp-admin3.36 ▲0.0657.29 ▼0.98
Posts /wp-admin/edit.php3.48 ▲0.1256.33 ▲2.03
Add New Post /wp-admin/post-new.php5.95 ▲0.06100.08 ▼3.92
Media Library /wp-admin/upload.php3.29 ▲0.0642.82 ▲7.48

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for BlogWings Companion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.42 ▼0.192.20 ▲0.5539.65 ▼6.63
Dashboard /wp-admin2,195 ▲215.61 ▼0.09104.53 ▲3.1244.05 ▲1.21
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0042.55 ▼3.0036.92 ▼0.95
Add New Post /wp-admin/post-new.php1,526 ▼523.49 ▲0.72634.72 ▼18.6553.39 ▲3.37
Media Library /wp-admin/upload.php1,400 ▲34.26 ▲0.03115.06 ▲8.8951.48 ▲7.45

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
Even though everything seems fine, this is not 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: blog, service, customizer

blogwings-companion/blogwings-companion.php Passed 13 tests

The primary PHP file in "BlogWings Companion" version 1.0.7 is used by WordPress to initiate all plugin functionality
119 characters long description:
With the help of Blogwings Companion unlimited addon you can add unlimited number of post with color options for each.

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
Good job! No executable or dangerous file extensions detected18,623 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript162,1241,5358,717
PHP285497535,331
CSS91,002694,575

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity14.16
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity5.01
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods82
▷ Static methods00.00%
▷ Public methods7793.90%
▷ Protected methods56.10%
▷ Private methods00.00%
Functions42
▷ Named functions42100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
20 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/customizer-radio-image/img/gradientovly-4.png7.75KB7.15KB▼ 7.85%
admin/customizer-radio-image/img/Gradient-1.png1.54KB1.38KB▼ 10.94%
admin/customizer-radio-image/img/gradientovly-3.png9.13KB8.95KB▼ 1.98%
admin/color/transparency-grid.png2.58KB2.80KB0.00%
admin/customizer-radio-image/img/download.png24.46KB6.76KB▼ 72.36%