94% paginate-atom-feeds

Code Review | Paginate Atom Feeds

WordPress plugin Paginate Atom Feeds scored 94% from 54 tests.

About plugin

  • Plugin page: paginate-atom-feeds
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 5.8.1
  • First release: Sep 23, 2015
  • Latest release: Sep 23, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: duncanjbrown (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 444 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Paginate Atom Feeds
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1242.06 ▲19.96
Dashboard /wp-admin3.07 ▲0.0150.30 ▲2.02
Posts /wp-admin/edit.php3.12 ▲0.0145.87 ▲1.51
Add New Post /wp-admin/post-new.php5.42 ▼0.0194.48 ▼559.67
Media Library /wp-admin/upload.php3.01 ▲0.0135.10 ▲3.43

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Paginate Atom Feeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.23 ▲0.387.83 ▼2.7652.06 ▲6.33
Dashboard /wp-admin2,989 ▲585.92 ▼0.01143.79 ▼6.18115.52 ▼6.28
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0072.10 ▲6.6099.36 ▲9.09
Add New Post /wp-admin/post-new.php1,683 ▼018.77 ▲1.01389.48 ▼33.90108.79 ▼6.08
Media Library /wp-admin/upload.php1,807 ▲35.02 ▲0.00150.58 ▼2.21134.26 ▲8.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paginate-atom-feeds/atom-pagination.php:87

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: pagination, feeds, atom

paginate-atom-feeds/atom-pagination.php 85% from 13 tests

"Paginate Atom Feeds" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • 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
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paginate-atom-feeds.php" instead of "atom-pagination.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin48 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1144627
Markdown19021

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin