74% automatically-paginate-posts

Code Review | Automatically Paginate Posts

WordPress plugin Automatically Paginate Posts scored74%from 54 tests.

About plugin

  • Plugin page: automatically-pag...
  • Plugin version: 0.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.0
  • WordPress version: 6.3.1
  • First release: Jun 3, 2012
  • Latest release: Jul 1, 2022
  • Number of updates: 22
  • Update frequency: every 167.2 days
  • Top authors: ethitter (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

2,000+ active /49,889 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.69ms] Passed 4 tests

This is a short check of server-side resources used by Automatically Paginate Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1345.15 ▲2.77
Dashboard /wp-admin3.42 ▲0.1249.86 ▼7.19
Posts /wp-admin/edit.php3.53 ▲0.1850.69 ▼3.11
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.40 ▼1.14
Media Library /wp-admin/upload.php3.34 ▲0.1237.38 ▲0.70

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Automatically Paginate Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.20 ▼0.161.82 ▼0.3344.41 ▼6.24
Dashboard /wp-admin2,189 ▲95.54 ▼0.0685.25 ▼13.5839.05 ▼3.82
Posts /wp-admin/edit.php2,103 ▼02.13 ▲0.1043.84 ▲0.9435.05 ▼2.59
Add New Post /wp-admin/post-new.php1,540 ▲1423.08 ▲0.10656.84 ▼11.1055.96 ▲8.70
Media Library /wp-admin/upload.php1,400 ▼34.17 ▲0.13103.45 ▲1.6946.15 ▼4.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Automatically_Paginate_Posts::uninstall() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 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/automatically-paginate-posts/automatically-paginate-posts.php:165

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

automatically-paginate-posts/automatically-paginate-posts.php Passed 13 tests

The entry point to "Automatically Paginate Posts" version 0.3.1 is a PHP file that has certain tags in its header comment area
114 characters long description:
Automatically inserts the <!--nextpage--> Quicktag into WordPress posts, pages, or custom post type content.

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
Everything looks great! No dangerous files found in this plugin590 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3137370589
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity33.00
▷ Minimum class complexity8.00
▷ Maximum class complexity58.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods2578.12%
▷ Protected methods721.88%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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