83% next-page-not-next-post

Code Review | Next Page, Not Next Post

WordPress plugin Next Page, Not Next Post scored83%from 54 tests.

About plugin

  • Plugin page: next-page-not-nex...
  • Plugin version: 0.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.0
  • WordPress version: 6.3.1
  • First release: Apr 28, 2009
  • Latest release: Sep 5, 2014
  • Number of updates: 21
  • Update frequency: every 93.1 days
  • Top authors: mcinvale (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /32,321 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.47ms] Passed 4 tests

An overview of server-side resources used by Next Page, Not Next Post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.57 ▼3.35
Dashboard /wp-admin3.33 ▲0.0350.91 ▼0.20
Posts /wp-admin/edit.php3.38 ▲0.0255.18 ▼2.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.61 ▼26.78
Media Library /wp-admin/upload.php3.25 ▲0.0237.71 ▼5.50

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Next Page, Not Next Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.031.67 ▼0.4840.21 ▼4.29
Dashboard /wp-admin2,198 ▲185.64 ▲0.0392.44 ▼7.3937.14 ▼8.59
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0238.84 ▲4.5437.38 ▲1.00
Add New Post /wp-admin/post-new.php1,526 ▼023.78 ▲0.48678.53 ▼58.4161.97 ▲0.16
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0499.99 ▼6.9342.37 ▼5.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/next-page-not-next-post/shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/next-page-not-next-post/shortcodes.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === next-page-not-next-post === )
Please take inspiration from this readme.txt

next-page-not-next-post/next_page_not_next_post.php 85% from 13 tests

This is the main PHP file of "Next Page, Not Next Post" version 0.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("next-page-not-next-post.php" instead of "next_page_not_next_post.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 178 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
No dangerous file extensions were detected119 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24240119

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin