84% pagination-rel-meta

Code Review | Pagination Rel Meta

WordPress plugin Pagination Rel Meta scored84%from 54 tests.

About plugin

  • Plugin page: pagination-rel-meta
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.0
  • WordPress version: 6.3.1
  • First release: May 26, 2014
  • Latest release: Sep 6, 2014
  • Number of updates: 5
  • Update frequency: every 20.6 days
  • Top authors: beaudierman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,427 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.04ms] Passed 4 tests

Analyzing server-side resources used by Pagination Rel Meta
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.58 ▼1.85
Dashboard /wp-admin3.31 ▼0.0456.55 ▼0.28
Posts /wp-admin/edit.php3.36 ▲0.0043.60 ▼6.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.93 ▼7.83
Media Library /wp-admin/upload.php3.23 ▲0.0035.10 ▲0.67

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Pagination Rel Meta
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.41 ▲0.051.99 ▲0.4242.12 ▲2.25
Dashboard /wp-admin2,195 ▲185.57 ▲0.0482.48 ▼2.3838.61 ▼4.42
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0734.42 ▼1.2933.83 ▼2.28
Add New Post /wp-admin/post-new.php1,526 ▼023.42 ▲0.19661.20 ▼0.7154.66 ▲5.24
Media Library /wp-admin/upload.php1,394 ▼94.13 ▼0.0496.41 ▼0.3644.00 ▼0.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 | 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pagination-rel-meta/pagination.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% 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
3 plugin tags: meta, seo, pagination

pagination-rel-meta/pagination.php 85% from 13 tests

The main file in "Pagination Rel Meta" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("pagination-rel-meta.php" instead of "pagination.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 231 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14917

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code1.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin