89% wp-paging-ajax

Code Review | WP Paging Ajax

WordPress plugin WP Paging Ajax scored 89% from 54 tests.

About plugin

  • Plugin page: wp-paging-ajax
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Apr 15, 2017
  • Latest release: Apr 18, 2017
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: thinhbg59 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,315 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WP Paging Ajax
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.50 ▲3.08
Dashboard /wp-admin3.32 ▲0.0246.79 ▼4.32
Posts /wp-admin/edit.php3.38 ▲0.0249.78 ▲1.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.94 ▼13.96
Media Library /wp-admin/upload.php3.25 ▲0.0235.93 ▼0.73
WP Paging Ajax /wp-admin/options-general.php?page=wp_paging_ajax3.2135.58

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Paging Ajax
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲15713.54 ▼1.066.11 ▲4.5139.54 ▼7.71
Dashboard /wp-admin2,213 ▲274.82 ▼0.16106.23 ▼4.5641.07 ▲0.01
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0540.32 ▲3.1535.13 ▲3.14
Add New Post /wp-admin/post-new.php1,522 ▼1123.29 ▲0.11651.13 ▲5.7357.96 ▲2.40
Media Library /wp-admin/upload.php1,392 ▲74.25 ▲0.05100.00 ▲0.1045.82 ▲2.76
WP Paging Ajax /wp-admin/options-general.php?page=wp_paging_ajax7932.0327.5226.95

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

wp-paging-ajax/wp-paging-ajax.php 92% from 13 tests

The primary PHP file in "WP Paging Ajax" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin426 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript281266315
PHP2322386
CSS13124
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin