83% netroics-blog-posts-grid

Code Review | Netroics Blog Posts Grid

WordPress plugin Netroics Blog Posts Grid scored 83% from 54 tests.

About plugin

  • Plugin page: netroics-blog-pos...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Aug 6, 2022
  • Latest release: Aug 6, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: muradcmt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.80ms] Passed 4 tests

Analyzing server-side resources used by Netroics Blog Posts Grid
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0938.92 ▼3.22
Dashboard /wp-admin3.39 ▲0.0948.75 ▼1.82
Posts /wp-admin/edit.php3.44 ▲0.0950.41 ▼0.29
Add New Post /wp-admin/post-new.php5.99 ▲0.1186.74 ▼9.88
Media Library /wp-admin/upload.php3.32 ▲0.0936.29 ▲0.58
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=netroicstp3.3140.25
All Items /wp-admin/edit.php?post_type=netroicstp3.3738.69
Settings Netroics /wp-admin/edit.php?post_type=netroicstp&page=netroics-settings-pages3.2935.78
Add New /wp-admin/post-new.php?post_type=netroicstp3.4557.03
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=netroicstp3.3143.44

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
category_children
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Netroics Blog Posts Grid
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲12613.41 ▼0.891.53 ▼0.2553.38 ▲10.24
Dashboard /wp-admin2,268 ▲805.15 ▲0.11101.75 ▼0.0539.26 ▲1.19
Posts /wp-admin/edit.php2,156 ▲672.32 ▲0.2637.28 ▲0.1531.18 ▼5.06
Add New Post /wp-admin/post-new.php1,567 ▲5323.41 ▲5.86624.38 ▼15.3234.69 ▼20.80
Media Library /wp-admin/upload.php1,447 ▲624.40 ▲0.1898.37 ▼5.1443.03 ▼2.20
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=netroicstp1,5132.0643.8633.58
All Items /wp-admin/edit.php?post_type=netroicstp1,1722.2439.6230.88
Settings Netroics /wp-admin/edit.php?post_type=netroicstp&page=netroics-settings-pages1,4932.8169.1349.74
Add New /wp-admin/post-new.php?post_type=netroicstp2,4077.96176.2366.78
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=netroicstp1,3772.0732.9328.33

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • category_children

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/netroics-blog-posts-grid/inc/functions.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/netroics-blog-posts-grid/inc/functions.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/netroics-blog-posts-grid/inc/netroics-dynamic-style.php:96

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Posts Settings), #2 (Back End), #3 (Front End)
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

netroics-blog-posts-grid/netroics-test-plugin.php 69% from 13 tests

"Netroics Blog Posts Grid" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("netroics-blog-posts-grid.php" instead of "netroics-test-plugin.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.2")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin3,185 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP38035286
CSS35110218
JavaScript20510

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png69.22KB31.77KB▼ 54.11%
screenshot-2.png43.84KB21.42KB▼ 51.15%
screenshot-1.png137.13KB42.05KB▼ 69.34%