68% bottom-stack

Code Review | Bottom Stack

WordPress plugin Bottom Stack scored68%from 54 tests.

About plugin

  • Plugin page: bottom-stack
  • Plugin version: 1.0.2
  • PHP compatiblity: 4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 12, 2018
  • Latest release: Jun 12, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: JKLIR (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /567 total downloads

Benchmarks

Plugin footprint 65% from 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.90MB] [CPU: ▼39.38ms] Passed 4 tests

This is a short check of server-side resources used by Bottom Stack
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0743.27 ▲0.21
Dashboard /wp-admin3.04 ▼0.2625.98 ▼29.20
Posts /wp-admin/edit.php3.04 ▼0.3126.75 ▼27.90
Add New Post /wp-admin/post-new.php3.04 ▼2.8428.50 ▼84.68
Media Library /wp-admin/upload.php3.04 ▼0.1924.31 ▼15.74
Bottom Stack /wp-admin/options-general.php?page=bottom-stack3.0428.72

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 30 new options
New WordPress options
btmstack_pages7
btmstack_data6
db_upgraded
btmstack_posts5
widget_theysaidso_widget
btmstack_posts3
btmstack_posts2
btmstack_pages8
btmstack_pages4
btmstack_posts8
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bottom Stack
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.27 ▲0.011.67 ▼0.0544.98 ▼2.21
Dashboard /wp-admin2,195 ▲155.62 ▼0.0392.91 ▲1.2542.44 ▲2.28
Posts /wp-admin/edit.php2,106 ▲32.02 ▲0.0440.80 ▲3.4437.44 ▲1.51
Add New Post /wp-admin/post-new.php1,533 ▲523.35 ▲0.24650.25 ▼28.2660.28 ▲5.29
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.0696.08 ▼20.3543.24 ▼4.78
Bottom Stack /wp-admin/options-general.php?page=bottom-stack1,2082.1227.9431.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 30 options in the database
    • btmstack_pages3
    • btmstack_posts3
    • btmstack_pages8
    • btmstack_pages5
    • btmstack_data1
    • btmstack_pages6
    • btmstack_posts5
    • btmstack_posts8
    • btmstack_posts2
    • widget_theysaidso_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bottom-stack
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bottom-stack/bottom-stack.php

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Bottom Stack Settings page.) image not found
You can look at the official readme.txt

bottom-stack/bottom-stack.php 92% from 13 tests

Analyzing the main PHP file in "Bottom Stack" version 1.0.2
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected305 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14017198
PO File1191960
CSS11047

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png98.86KB39.98KB▼ 59.55%