94% add-id-to-post-list

Code Review | Add ID to post list

WordPress plugin Add ID to post list scored 94% from 54 tests.

About plugin

  • Plugin page: add-id-to-post-list
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 5.9.2
  • First release: Dec 28, 2014
  • Latest release: Mar 31, 2016
  • Number of updates: 5
  • Update frequency: every 92.2 days
  • Top authors: jorgecastro91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 676 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Add ID to post list
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.07 ▲2.54
Dashboard /wp-admin3.43 ▲0.0235.64 ▲2.84
Posts /wp-admin/edit.php3.66 ▲0.0140.40 ▼0.80
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.12 ▼1,169.11
Media Library /wp-admin/upload.php3.31 ▲0.0155.43 ▲26.03

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add ID to post list
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲6215.78 ▲0.177.65 ▲1.872.43 ▲0.08
Dashboard /wp-admin2,895 ▲356.15 ▲0.01115.44 ▼9.06246.94 ▲3.22
Posts /wp-admin/edit.php2,706 ▲153.24 ▲0.0164.41 ▼1.68156.06 ▲15.40
Add New Post /wp-admin/post-new.php1,690 ▲2920.82 ▼1.96483.24 ▲39.07215.32 ▲54.65
Media Library /wp-admin/upload.php1,695 ▼35.55 ▲0.06159.66 ▲15.56208.67 ▲17.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-id-to-post-list/add-id-to-post-list.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: admin

add-id-to-post-list/add-id-to-post-list.php Passed 13 tests

Analyzing the main PHP file in "Add ID to post list" version 0.1
116 characters long description:
This plugin lets you see the ID of the every post in the list. Can be useful when using shortcodes or other plugins.

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 plugin14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11914

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin