90% ajax-load-more-for-relevanssi

Code Review | Ajax Load More for Relevanssi

WordPress plugin Ajax Load More for Relevanssi 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: Dec 1, 2016
  • Latest release: Dec 30, 2022
  • Number of updates: 9
  • Update frequency: every 247.6 days
  • Top authors: dcooney (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /6,843 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Ajax Load More for Relevanssi
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.93 ▼5.47
Dashboard /wp-admin3.32 ▲0.0248.05 ▼6.59
Posts /wp-admin/edit.php3.37 ▲0.0149.02 ▼0.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.10 ▲6.75
Media Library /wp-admin/upload.php3.25 ▲0.0136.79 ▲1.21

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

Browser metrics Passed 4 tests

Ajax Load More for Relevanssi: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.23 ▼1.151.75 ▲0.2639.89 ▼1.44
Dashboard /wp-admin2,206 ▲184.88 ▲0.0296.07 ▼13.5639.30 ▼6.90
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0239.73 ▲2.0535.85 ▲1.99
Add New Post /wp-admin/post-new.php1,547 ▲318.43 ▲0.37582.83 ▼67.0573.01 ▲16.12
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.0194.99 ▼17.5841.93 ▲0.28

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: ajax search, search, relevanssi, filter, ajax relevanssi...

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

The primary PHP file in "Ajax Load More for Relevanssi" version 1.0.2 is used by WordPress to initiate all plugin functionality
68 characters long description:
An Ajax Load More extension that adds compatibility with Relevanssi.

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
Everything looks great! No dangerous files found in this plugin66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1204866

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected