10% post-list-with-load-more

Code Review | Post List with Load More

WordPress plugin Post List with Load More scored10%from 54 tests.

About plugin

  • Plugin page: post-list-with-lo...
  • Plugin version: 2.0.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2020
  • Latest release: Jan 3, 2023
  • Number of updates: 10
  • Update frequency: every 106.5 days
  • Top authors: ramizmanked (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,332 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/post-list-with-load-more/post-list-with-load-more.php+33
    require_once(wp-content/plugins/post-list-with-load-more/vendor/autoload.php): failed to open stream: No such file or directory

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

An overview of server-side resources used by Post List with Load More
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.54 ▼2.20
Dashboard /wp-admin3.31 ▲0.0047.71 ▼5.36
Posts /wp-admin/edit.php3.36 ▲0.0044.27 ▼6.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.31 ▼6.99
Media Library /wp-admin/upload.php3.23 ▲0.0033.84 ▼2.70

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Post List with Load More
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.084.20 ▲2.5640.16 ▼2.78
Dashboard /wp-admin2,209 ▲234.88 ▼1.02104.98 ▼15.9037.40 ▼9.79
Posts /wp-admin/edit.php2,086 ▼02.01 ▲0.0136.04 ▼1.3930.47 ▼3.09
Add New Post /wp-admin/post-new.php1,544 ▲623.34 ▲0.19677.81 ▲72.9858.25 ▲6.28
Media Library /wp-admin/upload.php1,385 ▼04.18 ▼0.1799.85 ▲1.0347.63 ▲6.47

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

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Trait 'Post_List_With_Load_More\\Traits\\Singleton' not found in wp-content/plugins/post-list-with-load-more/classes/I18n.php on line 15
    • > PHP Fatal error
      Trait 'Post_List_With_Load_More\\Traits\\Singleton' not found in wp-content/plugins/post-list-with-load-more/classes/Admin/Settings.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'Post_List_With_Load_More\\Admin\\Settings' not found in wp-content/plugins/post-list-with-load-more/classes/manifest.php:8
    • > PHP Fatal error
      Trait 'Post_List_With_Load_More\\Traits\\Singleton' not found in wp-content/plugins/post-list-with-load-more/classes/Hooks.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/post-list-with-load-more/src/render.php:19
    • > PHP Fatal error
      Trait 'Post_List_With_Load_More\\Traits\\Singleton' not found in wp-content/plugins/post-list-with-load-more/classes/Block.php on line 15
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/post-list-with-load-more/classes/Front.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/post-list-with-load-more/build/render.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
9 plugin tags: post list block, post with read more, lazy loading posts, list block, ajax posts...

post-list-with-load-more/post-list-with-load-more.php Passed 13 tests

The main PHP file in "Post List with Load More" ver. 2.0.1 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
A simplified solution to your posts listing needs. This plugin lets you display the posts list anywhere on your site.

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
Everything looks great! No dangerous files found in this plugin19,474 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JSON40017,688
JavaScript570149869
PHP1196243724
CSS2101362
SVG10052
Markdown117046
Sass13033

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.33
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods1973.08%
▷ Protected methods726.92%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants228.57%
▷ Class constants571.43%
▷ Public constants5100.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
PNG images were not found in this plugin