90% ajax-load-more-for-searchwp

Code Review | Ajax Load More for SearchWP

WordPress plugin Ajax Load More for SearchWP scored90%from 54 tests.

About plugin

  • Plugin page: ajax-load-more-fo...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2016
  • Latest release: Dec 30, 2022
  • Number of updates: 18
  • Update frequency: every 124.4 days
  • Top authors: dcooney (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /0 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.33ms] Passed 4 tests

Analyzing server-side resources used by Ajax Load More for SearchWP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.77 ▲2.94
Dashboard /wp-admin3.32 ▲0.0249.99 ▼5.68
Posts /wp-admin/edit.php3.37 ▲0.0252.27 ▲1.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.36 ▼17.27
Media Library /wp-admin/upload.php3.24 ▲0.0235.88 ▲0.48

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Ajax Load More for SearchWP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.47 ▲0.102.06 ▲0.0746.88 ▲5.12
Dashboard /wp-admin2,203 ▲155.80 ▲0.94102.20 ▼4.9541.11 ▼7.45
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0539.96 ▲3.5534.47 ▼1.32
Add New Post /wp-admin/post-new.php1,538 ▲523.04 ▼0.14654.74 ▲16.6570.38 ▲18.37
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.06102.04 ▲3.6544.70 ▲1.23

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
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
7 plugin tags: search, searchwp, ajax, ajax load more, search results...

ajax-load-more-for-searchwp/ajax-load-more-for-searchwp.php Passed 13 tests

The main PHP file in "Ajax Load More for SearchWP" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
An Ajax Load More extension that adds compatibility with SearchWP

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1195871

PHP code Passed 2 tests

A brief analysis 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.41
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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 functions4100.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
No PNG images were found in this plugin