84% all-post-listing-block

Code Review | All Post Listing Block

WordPress plugin All Post Listing Block scored84%from 54 tests.

About plugin

  • Plugin page: all-post-listing-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Feb 14, 2022
  • Latest release: Sep 29, 2022
  • Number of updates: 5
  • Update frequency: every 48.0 days
  • Top authors: priyankkpatel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /395 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.63MB] [CPU: ▼16.22ms] Passed 4 tests

This is a short check of server-side resources used by All Post Listing Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.20 ▲1.65
Dashboard /wp-admin3.35 ▲0.0552.46 ▲0.62
Posts /wp-admin/edit.php3.40 ▲0.0551.00 ▼1.14
Add New Post /wp-admin/post-new.php3.23 ▼2.6639.57 ▼66.00
Media Library /wp-admin/upload.php3.28 ▲0.0538.27 ▲2.63

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

All Post Listing Block: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.26 ▼0.102.08 ▲0.3744.83 ▲4.96
Dashboard /wp-admin2,195 ▲175.55 ▼0.0988.74 ▼21.2237.70 ▼5.94
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0636.50 ▼1.5635.31 ▼5.97
Add New Post /wp-admin/post-new.php6,366 ▲4,83727.77 ▲4.60926.28 ▲283.9139.59 ▼16.24
Media Library /wp-admin/upload.php1,403 ▲34.29 ▲0.08105.57 ▲4.2143.66 ▼6.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-post-listing-block/all-post-listing-block.php:139

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
These attributes need your attention: The official readme.txt might help

all-post-listing-block/all-post-listing-block.php 92% from 13 tests

Analyzing the main PHP file in "All Post Listing Block" version 1.1.0
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,898 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31601351,438
PHP33335392
JSON20037
CSS15516
Sass12015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.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
No PNG files were detected