94% lsmooths-next-page-posts

Code Review | lsmooth's Next Page Posts

WordPress plugin lsmooth's Next Page Posts scored 94% from 54 tests.

About plugin

  • Plugin page: lsmooths-next-pag...
  • Plugin version: 0.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.5
  • WordPress version: 5.8.1
  • First release: Dec 31, 2012
  • Latest release: Jan 7, 2013
  • Number of updates: 25
  • Update frequency: every 0.3 days
  • Top authors: lsmooth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,358 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼142.01ms] Passed 4 tests

This is a short check of server-side resources used by lsmooth's Next Page Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1434.06 ▲14.39
Dashboard /wp-admin3.09 ▲0.0349.75 ▲5.89
Posts /wp-admin/edit.php3.14 ▲0.0345.64 ▲1.91
Add New Post /wp-admin/post-new.php5.45 ▲0.0287.08 ▼563.19
Media Library /wp-admin/upload.php3.03 ▲0.0225.47 ▼12.64
lsmooth's Next Page Posts /wp-admin/options-general.php?page=lsmooths-next-page-posts/settings.php2.9825.53

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for lsmooth's Next Page Posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11415.81 ▲0.229.13 ▲0.7349.23 ▲2.16
Dashboard /wp-admin2,972 ▲385.90 ▼0.04135.04 ▼8.45111.36 ▼4.79
Posts /wp-admin/edit.php2,744 ▲52.80 ▲0.1264.25 ▼3.0984.39 ▼8.76
Add New Post /wp-admin/post-new.php1,503 ▼16918.58 ▼0.19360.82 ▲8.33110.19 ▼2.34
Media Library /wp-admin/upload.php1,812 ▲55.01 ▼0.02149.00 ▼5.73124.94 ▼3.16
lsmooth's Next Page Posts /wp-admin/options-general.php?page=lsmooths-next-page-posts/settings.php1,0382.0853.6276.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=lsmooths-next-page-posts/settings.php
    • > Notice in wp-content/plugins/lsmooths-next-page-posts/settings.php+69
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: preview, pages, posts

lsmooths-next-page-posts/lsmooths_next_page_posts.php 85% from 13 tests

The main PHP script in "lsmooth's Next Page Posts" version 0.3.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("lsmooths-next-page-posts.php" instead of "lsmooths_next_page_posts.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin185 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43881156
CSS171229

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin