83% adjustly-nextpage

Code Review | Adjustly Nextpage

WordPress plugin Adjustly Nextpage scored83%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: 6.3.1
  • 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

300+ active /9,479 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Adjustly Nextpage
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.90 ▼0.81
Dashboard /wp-admin3.32 ▲0.0142.54 ▼4.64
Posts /wp-admin/edit.php3.37 ▲0.0146.46 ▼5.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.39 ▲3.28
Media Library /wp-admin/upload.php3.24 ▲0.0133.64 ▲0.45

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Adjustly Nextpage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.20 ▼1.171.89 ▲0.2849.22 ▲0.64
Dashboard /wp-admin2,214 ▲264.85 ▼1.0197.36 ▼22.8936.61 ▼9.93
Posts /wp-admin/edit.php2,094 ▲82.04 ▲0.0737.65 ▼1.6131.01 ▼3.08
Add New Post /wp-admin/post-new.php1,519 ▲517.71 ▲0.29626.23 ▼75.3963.89 ▲5.07
Media Library /wp-admin/upload.php1,393 ▲84.23 ▲0.0097.50 ▼10.6242.46 ▼5.80

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (Here is the Nextpage button highlighted for both the Visual and HTML toolbars.) image not found
  • Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

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

The entry point to "Adjustly Nextpage" version 0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 346 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("adjustly-nextpage.php" instead of "aj-nextpage.php")

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
Good job! No executable or dangerous file extensions detected34 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1114534
CSS1020

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
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%