80% easy-pagination-control

Code Review | Easy Pagination Control

WordPress plugin Easy Pagination Control scored80%from 54 tests.

About plugin

  • Plugin page: easy-pagination-c...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.2-5.7.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2020
  • Latest release: May 19, 2021
  • Number of updates: 11
  • Update frequency: every 25.5 days
  • Top authors: difficult13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /910 total downloads

Benchmarks

Plugin footprint 65% 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.11MB] [CPU: ▼6.58ms] Passed 4 tests

A check of server-side resources used by Easy Pagination Control
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1140.30 ▲3.58
Dashboard /wp-admin3.42 ▲0.0844.79 ▼20.54
Posts /wp-admin/edit.php3.54 ▲0.1848.82 ▲4.20
Add New Post /wp-admin/post-new.php6.00 ▲0.1294.31 ▼8.64
Media Library /wp-admin/upload.php3.34 ▲0.1233.61 ▼0.73

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Easy Pagination Control
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼1.081.57 ▲0.0341.36 ▲1.83
Dashboard /wp-admin2,203 ▲155.85 ▲0.95108.35 ▲1.1340.97 ▼3.35
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0339.74 ▲1.0635.81 ▲2.49
Add New Post /wp-admin/post-new.php1,514 ▼623.43 ▲0.29600.37 ▼57.8047.62 ▼2.45
Media Library /wp-admin/upload.php1,382 ▼64.20 ▲0.0895.06 ▼21.8940.18 ▼7.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function '\deactivate_plugin_name' not found or invalid function name
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: control, usability, easy, pagination

easy-pagination-control/easy-pagination-control.php 92% from 13 tests

This is the main PHP file of "Easy Pagination Control" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected517 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10145390460
PO File1151557

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2270.97%
▷ Protected methods00.00%
▷ Private methods929.03%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 files were detected