100% advance-user-post-crud

Code Review | Advance User Post CRUD

WordPress plugin Advance User Post CRUD scored 100% from 54 tests.

About plugin

  • Plugin page: advance-user-post...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8
  • WordPress version: 5.8.1
  • First release: Jan 4, 2017
  • Latest release: Aug 4, 2021
  • Number of updates: 27
  • Update frequency: every 61.8 days
  • Top authors: krishaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,225 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Advance User Post CRUD
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0130.45 ▲7.99
Dashboard /wp-admin3.08 ▲0.0136.48 ▼3.30
Posts /wp-admin/edit.php3.13 ▲0.0230.36 ▼2.47
Add New Post /wp-admin/post-new.php5.44 ▼0.0071.83 ▼585.29
Media Library /wp-admin/upload.php3.02 ▲0.0222.97 ▲0.38
Advance user post CRUD /wp-admin/options-general.php?page=adv-user-crud-post-count2.9926.87

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Advance User Post CRUD: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲19015.59 ▼0.415.44 ▼0.2373.80 ▲1.42
Dashboard /wp-admin3,052 ▲1606.11 ▼0.07118.25 ▼16.39185.48 ▲7.78
Posts /wp-admin/edit.php2,744 ▲73.35 ▲0.1162.64 ▼2.73138.63 ▼6.85
Add New Post /wp-admin/post-new.php3,740 ▼417.60 ▼0.63465.71 ▲42.51165.56 ▼1.40
Media Library /wp-admin/upload.php1,759 ▲105.51 ▲0.03143.86 ▲0.69188.44 ▲4.09
Advance user post CRUD /wp-admin/options-general.php?page=adv-user-crud-post-count1,0772.3853.86101.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: count user posts, post type post count, count user pages, published post

advance-user-post-crud/custom-post-count.php 92% from 13 tests

The principal PHP file in "Advance User Post CRUD" v. 1.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advance-user-post-crud.php" instead of "custom-post-count.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin385 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity10.00
▷ Minimum class complexity4.00
▷ Maximum class complexity16.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected