83% wpsite-show-ids

Code Review | Show IDs by DraftPress

WordPress plugin Show IDs by DraftPress scored83%from 54 tests.

About plugin

  • Plugin page: wpsite-show-ids
  • Plugin version: 1.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 9, 2014
  • Latest release: Nov 2, 2023
  • Number of updates: 25
  • Update frequency: every 133.7 days
  • Top authors: 99robots (72%)wpsitenet (32%)

Code review

54 tests

User reviews

21 reviews

Install metrics

20,000+ active /210,031 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.04MB] [CPU: ▼1.86ms] Passed 4 tests

An overview of server-side resources used by Show IDs by DraftPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.02 ▼0.69
Dashboard /wp-admin3.35 ▲0.0544.46 ▼2.72
Posts /wp-admin/edit.php3.40 ▲0.0550.99 ▼0.01
Add New Post /wp-admin/post-new.php5.93 ▲0.0590.22 ▼4.00
Media Library /wp-admin/upload.php3.27 ▲0.0534.48 ▲2.14

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Show IDs by DraftPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.23 ▼0.431.57 ▲0.0741.35 ▼2.66
Dashboard /wp-admin2,198 ▲185.59 ▼0.0889.27 ▼8.1937.06 ▼8.15
Posts /wp-admin/edit.php2,113 ▲131.98 ▼0.0540.25 ▲5.6036.02 ▼0.67
Add New Post /wp-admin/post-new.php1,539 ▲1318.28 ▼4.76656.91 ▼20.7983.34 ▲23.87
Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.0596.21 ▼5.0841.54 ▼8.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpsite-show-ids/wpsite-show-ids.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 75% 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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (IDs on the all posts page) image required
  • Donate link: Please fix this invalid url: ""
  • Contributors: Plugin contributors not specified
  • Tags: Too many tags (33 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

wpsite-show-ids/wpsite-show-ids.php Passed 13 tests

The main PHP file in "Show IDs by DraftPress" ver. 1.1.10 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
Show IDs on all post, page, and taxonomy pages.

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
Good job! No executable or dangerous file extensions detected99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1247999

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png42.57KB16.32KB▼ 61.66%