84% easy-wp-page-navigation

Code Review | Easy WP Page Navigation

WordPress plugin Easy WP Page Navigation scored 84% from 53 tests.

About plugin

  • Plugin page: easy-wp-page-navi...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 5.8.1
  • First release: Mar 26, 2015
  • Latest release: Apr 7, 2016
  • Number of updates: 38
  • Update frequency: every 10.0 days
  • Top authors: bboy8k (100%)

Code review

53 tests

User reviews

10 reviews

Install metrics

1,000+ active / 25,548 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
Installer ran successfully

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

A check of server-side resources used by Easy WP Page Navigation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1735.23 ▲10.67
Dashboard /wp-admin3.11 ▲0.0651.34 ▲15.63
Posts /wp-admin/edit.php3.16 ▲0.0543.22 ▼2.03
Add New Post /wp-admin/post-new.php5.47 ▲0.0492.11 ▼1,031.62
Media Library /wp-admin/upload.php3.05 ▲0.0430.08 ▼10.55
Easy WP Page Nav /wp-admin/options-general.php?page=easy-wp-pagenavigation3.0427.03

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options
easy_wp_page_navigation

Browser metrics Passed 4 tests

An overview of browser requirements for Easy WP Page Navigation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,661 ▲5515.86 ▲0.198.01 ▲0.5047.13 ▲2.27
Dashboard /wp-admin2,943 ▲875.89 ▲0.04133.71 ▼10.2795.03 ▼4.49
Posts /wp-admin/edit.php2,716 ▲102.68 ▼0.0068.58 ▲1.4496.68 ▲7.26
Add New Post /wp-admin/post-new.php1,488 ▼16918.45 ▼0.36346.04 ▼33.83107.19 ▲2.96
Media Library /wp-admin/upload.php1,782 ▲74.99 ▼0.02158.99 ▲12.96115.12 ▲0.36
Easy WP Page Nav /wp-admin/options-general.php?page=easy-wp-pagenavigation1,3032.4560.3371.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • easy_wp_page_navigation

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
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 _e() in wp-content/plugins/easy-wp-page-navigation/inc/plugin-form.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

easy-wp-page-navigation/easy-wp-pagenavigation.php 92% from 13 tests

Analyzing the main PHP file in "Easy WP Page Navigation" version 1.4
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-wp-page-navigation.php" instead of "easy-wp-pagenavigation.php")

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
Everything looks great! No dangerous files found in this plugin633 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP353138285
CSS2618257
PO File1255069
JavaScript15322

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin