93% adjustly-nextpage

Code Review | Adjustly Nextpage

WordPress plugin Adjustly Nextpage scored 93% from 54 tests.

About plugin

  • Plugin page: adjustly-nextpage
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3.1
  • WordPress version: 5.9.2
  • First release: Mar 7, 2012
  • Latest release: Mar 7, 2012
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: PSDCovers (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 9,085 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼294.81ms] Passed 4 tests

An overview of server-side resources used by Adjustly Nextpage
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0258.61 ▲8.95
Dashboard /wp-admin3.42 ▲0.0135.11 ▲2.56
Posts /wp-admin/edit.php3.65 ▲0.0140.78 ▲4.17
Add New Post /wp-admin/post-new.php6.89 ▼0.0793.12 ▼1,190.13
Media Library /wp-admin/upload.php3.30 ▲0.0128.14 ▲4.17

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Adjustly Nextpage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲3715.91 ▲0.296.76 ▼0.252.81 ▲0.02
Dashboard /wp-admin2,884 ▲236.13 ▼0.06136.14 ▼3.25157.02 ▼0.14
Posts /wp-admin/edit.php2,698 ▲103.24 ▲0.0266.14 ▲4.18141.83 ▲6.15
Add New Post /wp-admin/post-new.php1,722 ▲6121.05 ▲4.98505.82 ▲90.80162.31 ▲4.85
Media Library /wp-admin/upload.php1,705 ▲105.58 ▲0.05141.75 ▼24.28191.30 ▼2.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
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 get_option() in wp-content/plugins/adjustly-nextpage/aj-nextpage.php:36

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 87% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Here is the Nextpage button highlighted for both the Visual and HTML toolbars.) image not found
Please take inspiration from this readme.txt

adjustly-nextpage/aj-nextpage.php 85% from 13 tests

This is the main PHP file of "Adjustly Nextpage" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("adjustly-nextpage.php" instead of "aj-nextpage.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 346 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin34 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1114534
CSS1020

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.81KB12.09KB▼ 46.99%