84% category-wise-post-listing-shortcode

Code Review | Category Wise Post Listing Shortcode

WordPress plugin Category Wise Post Listing Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: category-wise-pos...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 21, 2019
  • Latest release: Nov 13, 2019
  • Number of updates: 11
  • Update frequency: every 24.6 days
  • Top authors: chintan238 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /600 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Category Wise Post Listing Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.44 ▼1.11
Dashboard /wp-admin3.31 ▲0.0045.49 ▼2.71
Posts /wp-admin/edit.php3.36 ▲0.0048.94 ▲2.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.58 ▼8.19
Media Library /wp-admin/upload.php3.23 ▲0.0032.98 ▼4.33

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Category Wise Post Listing Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.341.74 ▼0.1441.97 ▼3.44
Dashboard /wp-admin2,206 ▲215.83 ▲0.01105.99 ▲4.0941.26 ▼0.76
Posts /wp-admin/edit.php2,092 ▼02.00 ▲0.0136.83 ▼10.0134.69 ▼1.32
Add New Post /wp-admin/post-new.php1,533 ▼023.37 ▲0.14689.87 ▲13.6270.44 ▲16.03
Media Library /wp-admin/upload.php1,391 ▲34.30 ▲0.0993.55 ▼6.0840.03 ▼6.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/category-wise-post-listing-shortcode/category-wise-post-listing-shortcode.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/category-wise-post-listing-shortcode/template/category_listing.php:1

User-side errors Passed 1 test

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

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
4 plugin tags: category wise listing, post, category, post listing

category-wise-post-listing-shortcode/category-wise-post-listing-shortcode.php 92% from 13 tests

The primary PHP file in "Category Wise Post Listing Shortcode" version 1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 218 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected36 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP20936

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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
No PNG files were detected