78% slideposts-ajax-pagination

Code Review | Slide Posts with Ajax Pagination

WordPress plugin Slide Posts with Ajax Pagination scored78%from 54 tests.

About plugin

  • Plugin page: slideposts-ajax-p...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 16, 2017
  • Latest release: Dec 4, 2019
  • Number of updates: 3
  • Update frequency: every 329.7 days
  • Top authors: annrra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /560 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.86ms] Passed 4 tests

An overview of server-side resources used by Slide Posts with Ajax Pagination
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0345.62 ▲3.05
Dashboard /wp-admin3.34 ▲0.0348.65 ▼10.48
Posts /wp-admin/edit.php3.39 ▲0.0346.37 ▼4.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.57 ▼11.63
Media Library /wp-admin/upload.php3.27 ▲0.0336.00 ▼0.71
SlidePosts /wp-admin/options-general.php?page=sp_sampleoptions3.2131.55

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Slide Posts with Ajax Pagination
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.38 ▼0.899.50 ▲7.6542.06 ▼1.60
Dashboard /wp-admin2,202 ▲285.52 ▼0.0585.31 ▼3.7439.97 ▼7.32
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0433.90 ▼5.7337.16 ▲4.46
Add New Post /wp-admin/post-new.php1,538 ▲1018.36 ▼4.91609.55 ▼55.7369.40 ▲20.02
Media Library /wp-admin/upload.php1,407 ▲104.23 ▲0.04100.79 ▼11.0145.85 ▼1.05
SlidePosts /wp-admin/options-general.php?page=sp_sampleoptions8212.0027.2427.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=sp_sampleoptions
    • > Notice in wp-content/plugins/slideposts-ajax-pagination/slideposts-ajax-pagination.php+45
    Undefined index: catname
    • > GET request to /wp-admin/options-general.php?page=sp_sampleoptions
    • > Notice in wp-content/plugins/slideposts-ajax-pagination/slideposts-ajax-pagination.php+48
    Undefined index: postsnumber

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slideposts-ajax-pagination/slideposts-ajax-pagination.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

slideposts-ajax-pagination/slideposts-ajax-pagination.php Passed 13 tests

The main file in "Slide Posts with Ajax Pagination" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
65 characters long description:
This plugin adds posts from custom category with ajax pagination.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected332 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12725182
CSS114113
JavaScript14037

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected