74% pagination-test-drive

Code Review | Pagination Test Drive

WordPress plugin Pagination Test Drive scored 74% from 54 tests.

About plugin

  • Plugin page: pagination-test-d...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Feb 29, 2016
  • Latest release: Mar 25, 2022
  • Number of updates: 15
  • Update frequency: every 147.7 days
  • Top authors: yuyahoshino (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,033 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲1.75ms] Passed 4 tests

Analyzing server-side resources used by Pagination Test Drive
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0543.10 ▲1.34
Dashboard /wp-admin3.36 ▲0.0552.53 ▲1.54
Posts /wp-admin/edit.php3.41 ▲0.0551.85 ▲0.19
Add New Post /wp-admin/post-new.php5.94 ▲0.05102.99 ▲3.91
Media Library /wp-admin/upload.php3.29 ▲0.0541.80 ▲7.25
Pagination Test Drive /wp-admin/tools.php?page=pagination_test_drive3.2731.59

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Pagination Test Drive
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.32 ▲0.171.69 ▼0.1743.37 ▼2.56
Dashboard /wp-admin2,210 ▲45.88 ▲0.08103.90 ▲1.2641.75 ▲3.16
Posts /wp-admin/edit.php2,096 ▲102.00 ▼0.0241.02 ▲0.8636.33 ▲0.48
Add New Post /wp-admin/post-new.php1,539 ▲522.94 ▼0.51652.94 ▲65.6455.52 ▲2.49
Media Library /wp-admin/upload.php1,389 ▲14.26 ▲0.08104.53 ▲8.9245.82 ▲2.16
Pagination Test Drive /wp-admin/tools.php?page=pagination_test_drive9442.0323.9032.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Pagination_Test_Drive::ptd_uninstall() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/pagination-test-drive/pagination-test-drive.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Donate link: Invalid URI ("")
  • Screenshots: Screenshot #1 (This is the initial screen.) image missing
You can look at the official readme.txt

pagination-test-drive/pagination-test-drive.php Passed 13 tests

The primary PHP file in "Pagination Test Drive" version 1.3.3 is used by WordPress to initiate all plugin functionality
72 characters long description:
You can test the pagination without having to post an article even once.

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
No dangerous file extensions were detected368 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12422287
CSS1101081

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity7.33
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.44KB11.18KB▼ 56.06%