94% wp-number-of-items-per-page

Code Review | WP Number Of Items Per Page

WordPress plugin WP Number Of Items Per Page scored 94% from 54 tests.

About plugin

  • Plugin page: wp-number-of-item...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 5.8.1
  • First release: Nov 10, 2016
  • Latest release: Nov 19, 2016
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: pwron (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 1,473 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼155.31ms] Passed 4 tests

An overview of server-side resources used by WP Number Of Items Per Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0125.45 ▼0.89
Dashboard /wp-admin3.07 ▲0.0038.26 ▼2.74
Posts /wp-admin/edit.php3.12 ▲0.0131.82 ▼2.46
Add New Post /wp-admin/post-new.php5.43 ▼0.0171.66 ▼615.16
Media Library /wp-admin/upload.php3.01 ▲0.0126.50 ▲0.72

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Number Of Items Per Page: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7515.80 ▲0.246.22 ▼0.7475.87 ▼4.11
Dashboard /wp-admin2,933 ▲376.09 ▼0.02113.86 ▼16.08165.97 ▼5.38
Posts /wp-admin/edit.php2,847 ▲1073.26 ▲0.0265.19 ▲0.77137.63 ▼6.73
Add New Post /wp-admin/post-new.php3,813 ▲7018.94 ▲0.18438.35 ▼10.88161.45 ▼10.48
Media Library /wp-admin/upload.php1,755 ▲35.49 ▼0.06141.85 ▼0.60182.92 ▼5.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-number-of-items-per-page/wp-number-of-items-per-page.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: admin, pagination, pages, elements, items...

wp-number-of-items-per-page/wp-number-of-items-per-page.php 92% from 13 tests

The entry point to "WP Number Of Items Per Page" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin66 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin