84% tstfullwidth

Code Review | TSTFullwidth

WordPress plugin TSTFullwidth scored84%from 54 tests.

About plugin

  • Plugin page: tstfullwidth
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2016
  • Latest release: Feb 11, 2019
  • Number of updates: 5
  • Update frequency: every 173.0 days
  • Top authors: AnushkaKR (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /737 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.68ms] Passed 4 tests

A check of server-side resources used by TSTFullwidth
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0722.08 ▼18.76
Dashboard /wp-admin3.31 ▲0.0145.66 ▼2.62
Posts /wp-admin/edit.php3.37 ▲0.0154.36 ▲6.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.05 ▼24.80
Media Library /wp-admin/upload.php3.24 ▲0.0137.91 ▲3.46

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

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

Browser metrics Passed 4 tests

TSTFullwidth: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.23 ▼0.391.46 ▼0.4038.36 ▼0.86
Dashboard /wp-admin2,198 ▲205.58 ▼0.0881.18 ▼15.6638.04 ▼7.06
Posts /wp-admin/edit.php2,097 ▼31.95 ▼0.0039.95 ▼0.3634.69 ▼2.56
Add New Post /wp-admin/post-new.php1,526 ▼023.63 ▼0.05660.01 ▼32.3359.42 ▲0.51
Media Library /wp-admin/upload.php1,400 ▼34.26 ▲0.05111.60 ▲7.7647.27 ▲3.60

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/tstfullwidth/tstfullwidth.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === tstfullwidth === )
The official readme.txt might help

tstfullwidth/tstfullwidth.php Passed 13 tests

"TSTFullwidth" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
The custom wordpress plugin to make twenty sixteen theme full width

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin35 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP152628
CSS1107

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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