77% blogs-column-data

Code Review | Blogs Column Data

WordPress plugin Blogs Column Data scored77%from 54 tests.

About plugin

  • Plugin page: blogs-column-data
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 8, 2022
  • Latest release: Jan 13, 2022
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: bestwpdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /763 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.54ms] Passed 4 tests

An overview of server-side resources used by Blogs Column Data
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.91 ▼7.25
Dashboard /wp-admin3.38 ▲0.0350.44 ▼15.77
Posts /wp-admin/edit.php3.50 ▲0.1446.90 ▼3.86
Add New Post /wp-admin/post-new.php5.99 ▲0.0988.20 ▼11.27
Media Library /wp-admin/upload.php3.31 ▲0.0738.49 ▲3.62

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

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

Browser metrics Passed 4 tests

Blogs Column Data: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲13013.34 ▼1.287.96 ▲6.0139.44 ▼6.00
Dashboard /wp-admin2,202 ▲255.58 ▼0.0388.07 ▼15.7645.87 ▲0.65
Posts /wp-admin/edit.php2,176 ▲762.03 ▲0.0141.87 ▲4.0136.82 ▲2.22
Add New Post /wp-admin/post-new.php1,544 ▼522.87 ▼0.24751.40 ▲121.2964.75 ▲16.65
Media Library /wp-admin/upload.php1,407 ▲104.23 ▲0.01100.37 ▼5.0846.04 ▼1.42

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/blogs-column-data/admin/partials/blogs-column-data-admin-display.php
    • > /wp-content/plugins/blogs-column-data/public/partials/blogs-column-data-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blogs-column-data/blogs-column-data.php:32

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Add a description for screenshot #0 in blogs-column-data/assets to your readme.txt
  • Screenshots: Screenshot #1 (The plugin view screenshot.png) image required
You can take inspiration from this readme.txt

blogs-column-data/blogs-column-data.php 85% from 13 tests

"Blogs Column Data" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 215 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin267 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12134537261
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin