84% nextpage-buttons

Code Review | NextPage Buttons

WordPress plugin NextPage Buttons scored84%from 54 tests.

About plugin

  • Plugin page: nextpage-buttons
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Dec 21, 2009
  • Latest release: Dec 12, 2013
  • Number of updates: 12
  • Update frequency: every 122.3 days
  • Top authors: shawnparker (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /15,124 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼7.72ms] Passed 4 tests

An overview of server-side resources used by NextPage Buttons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.96 ▼7.54
Dashboard /wp-admin3.32 ▲0.0145.04 ▼7.57
Posts /wp-admin/edit.php3.37 ▲0.0147.23 ▲4.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.71 ▼16.79
Media Library /wp-admin/upload.php3.24 ▲0.0135.03 ▲1.01

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for NextPage Buttons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼0.724.83 ▲2.8642.00 ▼2.17
Dashboard /wp-admin2,209 ▲184.85 ▼0.04111.41 ▲3.4045.54 ▲3.81
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0239.66 ▼1.4236.37 ▲0.05
Add New Post /wp-admin/post-new.php1,540 ▲2623.06 ▲5.55664.93 ▲19.0752.46 ▼6.16
Media Library /wp-admin/upload.php1,382 ▼34.20 ▼0.0896.15 ▼9.9540.48 ▼5.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nextpage-buttons/nextpage-buttons.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tested up to: Version format is invalid
The official readme.txt might help

nextpage-buttons/nextpage-buttons.php 92% from 13 tests

The main PHP file in "NextPage Buttons" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 190 characters long)

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 detected109 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1145674
PO File261035

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin