72% custom-nextpage

Code Review | Custom Nextpage

WordPress plugin Custom Nextpage scored72%from 54 tests.

About plugin

  • Plugin page: custom-nextpage
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2.2
  • WordPress version: 6.3.1
  • First release: Sep 17, 2014
  • Latest release: Dec 14, 2021
  • Number of updates: 25
  • Update frequency: every 106.4 days
  • Top authors: Webnist (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /8,741 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Custom Nextpage
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.97 ▲8.04
Dashboard /wp-admin3.36 ▲0.0646.54 ▲1.29
Posts /wp-admin/edit.php3.47 ▲0.1247.44 ▲1.65
Add New Post /wp-admin/post-new.php5.96 ▲0.0882.00 ▼6.21
Media Library /wp-admin/upload.php3.28 ▲0.0637.61 ▼0.40
Custom Nextpage /wp-admin/options-general.php?page=custom-nextpage3.2331.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Nextpage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.60 ▼0.804.88 ▲3.2343.85 ▼0.11
Dashboard /wp-admin2,221 ▲395.87 ▲0.02112.09 ▼2.0341.75 ▲2.78
Posts /wp-admin/edit.php2,100 ▲112.06 ▲0.0334.51 ▼3.1934.96 ▲1.04
Add New Post /wp-admin/post-new.php1,524 ▼923.39 ▼0.04639.46 ▼41.0162.66 ▲10.49
Media Library /wp-admin/upload.php1,405 ▲174.21 ▲0.0299.43 ▼8.8342.65 ▼2.73
Custom Nextpage /wp-admin/options-general.php?page=custom-nextpage1,4002.5843.7439.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=custom-nextpage
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=custom-nextpage
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-nextpage/custom-nextpage.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'CustomNextPageInit' not found in wp-content/plugins/custom-nextpage/includes/class-admin-menu.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'CustomNextPageInit' not found in wp-content/plugins/custom-nextpage/includes/class-admin-editor.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'CustomNextPageInit' not found in wp-content/plugins/custom-nextpage/includes/tinymce/plugins/customnextpage/langs/langs.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/custom-nextpage/custom-nextpage.php:29
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-nextpage/custom-nextpage.php on line 18

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=custom-nextpage
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=custom-nextpage 17:4 Uncaught ReferenceError: QTags is not defined

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Short code insertion button), #2 (Title insertion form), #3 (It looks after you insert), #4 (Next page appearance)
Please take inspiration from this readme.txt

custom-nextpage/custom-nextpage.php Passed 13 tests

"Custom Nextpage" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
MultiPage is a customizable plugin. Can any title on the page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin9,522 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript129179677,809
PHP47313633
CSS65524477
HTML4700433
PO File13945102
Markdown219068

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity17.75
▷ Minimum class complexity5.00
▷ Maximum class complexity28.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.84MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/tinymce/plugins/customnextpage/img/custom-next-page.png1.60KB0.46KB▼ 71.17%
screenshot-4.png151.31KB46.06KB▼ 69.56%
images/custom-next-page@2x.png1.61KB0.40KB▼ 74.92%
includes/tinymce/plugins/customnextpage/img/custom-next-page-icon.png1.27KB0.29KB▼ 77.39%
screenshot-1.png254.56KB77.10KB▼ 69.71%