90% lcp-ajax-pagination

Code Review | LCP Ajax Pagination

WordPress plugin LCP Ajax Pagination scored90%from 54 tests.

About plugin

  • Plugin page: lcp-ajax-pagination
  • Plugin version: 0.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: Mar 16, 2023
  • Number of updates: 7
  • Update frequency: every 99.2 days
  • Top authors: zymeth25 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.53ms] Passed 4 tests

Analyzing server-side resources used by LCP Ajax Pagination
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.34 ▼2.51
Dashboard /wp-admin3.35 ▲0.0444.20 ▼2.84
Posts /wp-admin/edit.php3.46 ▲0.1042.13 ▼2.33
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.00 ▼18.42
Media Library /wp-admin/upload.php3.27 ▲0.0434.06 ▲1.26

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for LCP Ajax Pagination
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.251.84 ▲0.3643.55 ▲0.30
Dashboard /wp-admin2,195 ▲175.57 ▼0.1583.94 ▼12.2237.77 ▼3.67
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0132.78 ▼0.1834.55 ▲1.29
Add New Post /wp-admin/post-new.php1,526 ▼1123.23 ▲5.07667.01 ▲35.9152.38 ▼11.87
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0398.22 ▲0.4746.19 ▲3.73

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: ajax-pagination, list-category-posts, ajax

lcp-ajax-pagination/lcp-ajax-pagination.php 92% from 13 tests

"LCP Ajax Pagination" version 0.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected293 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP572346162
JavaScript2261971
SVG10052
Sass1107
CSS1111

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1477.78%
▷ Protected methods00.00%
▷ Private methods422.22%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin