84% next-page

Code Review | Next Page

WordPress plugin Next Page scored84%from 54 tests.

About plugin

  • Plugin page: next-page
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.1
  • WordPress version: 6.3.1
  • First release: Jul 5, 2009
  • Latest release: Nov 5, 2012
  • Number of updates: 26
  • Update frequency: every 81.4 days
  • Top authors: sillybean (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

900+ active /30,443 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.02ms] Passed 4 tests

Server-side resources used by Next Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.89 ▼3.20
Dashboard /wp-admin3.36 ▲0.0651.83 ▼3.24
Posts /wp-admin/edit.php3.42 ▲0.0554.55 ▲2.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.37 ▼0.41
Media Library /wp-admin/upload.php3.29 ▲0.0542.82 ▲7.65
Next Page /wp-admin/options-general.php?page=next-page3.2535.46

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Next Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.28 ▲0.021.69 ▼0.5942.76 ▼0.98
Dashboard /wp-admin2,199 ▲225.64 ▼0.0187.23 ▼6.5338.29 ▼8.33
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0342.74 ▲0.8335.52 ▼9.74
Add New Post /wp-admin/post-new.php1,529 ▲322.88 ▼0.34667.45 ▼5.7654.61 ▲3.08
Media Library /wp-admin/upload.php1,404 ▲44.16 ▲0.0198.01 ▼18.2844.00 ▼3.00
Next Page /wp-admin/options-general.php?page=next-page9782.0323.0030.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at 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/next-page/next-page.php:12

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
1 plugin tags: page

next-page/next-page.php Passed 13 tests

This is the main PHP file of "Next Page" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
76 characters long description:
Provides shortcodes and template tags for next/previous navigation in pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected361 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15121234
PO File25259127

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected