94% simple-blog-layout

Code Review | Simple Blog Layout

WordPress plugin Simple Blog Layout scored 94% from 54 tests.

About plugin

  • Plugin page: simple-blog-layout
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Dec 15, 2017
  • Latest release: Dec 15, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mdshuvo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 472 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼141.14ms] Passed 4 tests

An overview of server-side resources used by Simple Blog Layout
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0239.52 ▲5.23
Dashboard /wp-admin3.06 ▲0.0142.97 ▼0.14
Posts /wp-admin/edit.php3.11 ▲0.0139.49 ▼0.70
Add New Post /wp-admin/post-new.php5.42 ▼0.0186.31 ▼563.88
Media Library /wp-admin/upload.php3.01 ▲0.0031.51 ▲0.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Blog Layout
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11115.84 ▲0.377.82 ▼0.3546.83 ▼3.83
Dashboard /wp-admin2,970 ▲395.90 ▼0.02131.19 ▼10.34120.40 ▲6.41
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0166.76 ▼5.9487.86 ▼2.15
Add New Post /wp-admin/post-new.php1,498 ▼016.90 ▼1.99348.16 ▼21.36107.47 ▼7.31
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.03146.98 ▼6.78117.62 ▲0.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× 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/simple-blog-layout/asr-simple-blog.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can look at the official readme.txt

simple-blog-layout/asr-simple-blog.php 92% from 13 tests

The main PHP script in "Simple Blog Layout" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-blog-layout.php" instead of "asr-simple-blog.php")

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
There were no executable files found in this plugin875 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS263775
PHP12113100

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin