90% landing-page-for-wc-categories-tags

Code Review | Landing page for WC Archive Pages

WordPress plugin Landing page for WC Archive Pages scored90%from 54 tests.

About plugin

  • Plugin page: landing-page-for-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 6.3.1
  • First release: Sep 22, 2021
  • Latest release: Jan 25, 2022
  • Number of updates: 6
  • Update frequency: every 21.0 days
  • Top authors: mukesh27 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /647 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Landing page for WC Archive Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.50 ▼0.60
Dashboard /wp-admin3.31 ▲0.0049.95 ▼4.28
Posts /wp-admin/edit.php3.36 ▲0.0048.33 ▼4.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.64 ▼18.33
Media Library /wp-admin/upload.php3.23 ▲0.0037.61 ▼6.04

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Landing page for WC Archive Pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.80 ▲0.501.86 ▼0.1442.02 ▼1.37
Dashboard /wp-admin2,203 ▲124.83 ▼1.05114.61 ▲8.9440.48 ▼0.68
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0135.07 ▼5.0436.23 ▼1.38
Add New Post /wp-admin/post-new.php1,535 ▲223.01 ▼0.14683.28 ▲91.8154.89 ▲4.56
Media Library /wp-admin/upload.php1,391 ▲124.30 ▲0.02108.55 ▲6.8247.17 ▲6.56

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
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: archive, woocommerce, shop, tags, landingpage...

landing-page-for-wc-categories-tags/landing-page-for-wc-categories-tags.php 92% from 13 tests

The main PHP file in "Landing page for WC Archive Pages" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin554 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10165457462
CSS113492

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.75
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods32
▷ Static methods13.12%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin