89% folder-to-category-link

Code Review | FOLDER TO CATEGORY LINK

WordPress plugin FOLDER TO CATEGORY LINK scored89%from 54 tests.

About plugin

  • Plugin page: folder-to-categor...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Sep 12, 2020
  • Latest release: Sep 12, 2020
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: naimurhasanrwd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /410 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
Install script ran successfully

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

A check of server-side resources used by FOLDER TO CATEGORY LINK
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.21 ▼7.35
Dashboard /wp-admin3.31 ▼0.0354.32 ▼6.27
Posts /wp-admin/edit.php3.36 ▲0.0154.05 ▲4.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.64 ▼16.85
Media Library /wp-admin/upload.php3.24 ▲0.0140.73 ▲1.27

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for FOLDER TO CATEGORY LINK
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.22 ▼0.342.03 ▲0.0941.32 ▼4.49
Dashboard /wp-admin2,210 ▲395.64 ▲0.0389.52 ▼5.9842.26 ▲3.33
Posts /wp-admin/edit.php2,112 ▲122.00 ▲0.0141.18 ▼0.6536.11 ▼2.37
Add New Post /wp-admin/post-new.php1,560 ▲2022.97 ▲4.39600.89 ▼47.8458.04 ▲2.45
Media Library /wp-admin/upload.php1,415 ▲154.31 ▲0.0295.06 ▼14.5345.49 ▼1.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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
Attributes that need to be fixed: You can look at the official readme.txt

folder-to-category-link/folder_to_category_link.php 92% from 13 tests

Analyzing the main PHP file in "FOLDER TO CATEGORY LINK" version 1.0
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("folder-to-category-link.php" instead of "folder_to_category_link.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected172 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP558113172

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin