84% wp-list-category-posts-with-pagination

Code Review | Wp List Category Posts With Pagination

WordPress plugin Wp List Category Posts With Pagination scored84%from 54 tests.

About plugin

  • Plugin page: wp-list-category-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Jan 15, 2017
  • Latest release: Feb 14, 2022
  • Number of updates: 14
  • Update frequency: every 131.9 days
  • Top authors: umairsaleem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,045 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 gracefully, with no errors

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

An overview of server-side resources used by Wp List Category Posts With Pagination
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.70 ▼2.78
Dashboard /wp-admin3.31 ▲0.0145.23 ▼7.18
Posts /wp-admin/edit.php3.36 ▲0.0045.87 ▼2.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.32 ▼10.70
Media Library /wp-admin/upload.php3.23 ▲0.0039.43 ▲5.89

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Wp List Category Posts With Pagination
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8014.42 ▼0.241.69 ▼0.4647.49 ▲0.07
Dashboard /wp-admin2,220 ▲295.83 ▲0.9498.13 ▼12.5588.64 ▲43.43
Posts /wp-admin/edit.php2,100 ▲82.05 ▲0.0444.39 ▲7.4334.73 ▲3.54
Add New Post /wp-admin/post-new.php1,677 ▲14422.59 ▼0.72591.30 ▼92.9154.87 ▼12.14
Media Library /wp-admin/upload.php1,396 ▲84.14 ▼0.01109.47 ▼2.8044.82 ▼4.96

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-list-category-posts-with-pagination/wp-list-category-posts-with-pagination.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: wordpress, wp, categories, posts, easy softonic...

wp-list-category-posts-with-pagination/wp-list-category-posts-with-pagination.php 92% from 13 tests

The primary PHP file in "Wp List Category Posts With Pagination" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 384 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 detected139 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15318111
CSS15128

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/eastsoftonic-logo.png4.31KB3.02KB▼ 29.92%
images/icon.png1.47KB0.99KB▼ 32.38%