84% faster-pagination

Code Review | Faster Pagination

WordPress plugin Faster Pagination scored84%from 54 tests.

About plugin

  • Plugin page: faster-pagination
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 28, 2014
  • Latest release: Jun 28, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: fasterthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /109,945 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.93ms] Passed 4 tests

This is a short check of server-side resources used by Faster Pagination
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.06 ▼1.35
Dashboard /wp-admin3.31 ▲0.0045.03 ▼5.40
Posts /wp-admin/edit.php3.36 ▲0.0048.77 ▲5.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.75 ▼9.99
Media Library /wp-admin/upload.php3.23 ▲0.0040.35 ▲5.89

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Faster Pagination
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9214.67 ▲0.321.88 ▲0.0938.03 ▼6.44
Dashboard /wp-admin2,209 ▲246.02 ▲0.21105.96 ▼4.7738.59 ▼5.48
Posts /wp-admin/edit.php2,068 ▼212.04 ▲0.0133.76 ▼3.9733.32 ▲0.53
Add New Post /wp-admin/post-new.php1,540 ▲723.50 ▲0.16687.85 ▲23.4751.94 ▼3.60
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.01101.39 ▼14.5245.30 ▼4.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/faster-pagination/ft-pagination.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: pagination

faster-pagination/ft-pagination.php 92% from 13 tests

Analyzing the main PHP file in "Faster Pagination" version 1.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("faster-pagination.php" instead of "ft-pagination.php")

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
No dangerous file extensions were detected69 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12839
CSS10030

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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