84% reveal-ids-for-wp-admin-25

Code Review | Reveal IDs

WordPress plugin Reveal IDs scored84%from 54 tests.

About plugin

  • Plugin page: reveal-ids-for-wp...
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.99
  • WordPress version: 6.3.1
  • First release: Apr 2, 2008
  • Latest release: Jul 26, 2023
  • Number of updates: 180
  • Update frequency: every 31.1 days
  • Top authors: Alphawolf (100%)

Code review

54 tests

User reviews

60 reviews

Install metrics

60,000+ active /1,054,430 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.45ms] Passed 4 tests

Analyzing server-side resources used by Reveal IDs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.37 ▼1.59
Dashboard /wp-admin3.49 ▲0.1848.18 ▲2.61
Posts /wp-admin/edit.php3.54 ▲0.1948.76 ▼3.56
Add New Post /wp-admin/post-new.php6.07 ▲0.1891.23 ▼8.75
Media Library /wp-admin/upload.php3.41 ▲0.1836.72 ▲0.11

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

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

Browser metrics Passed 4 tests

Reveal IDs: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.28 ▼0.741.58 ▼0.2540.71 ▼1.90
Dashboard /wp-admin2,209 ▲214.85 ▼1.05110.66 ▼1.8739.87 ▼0.89
Posts /wp-admin/edit.php2,124 ▲322.12 ▲0.0840.80 ▲2.2437.30 ▲2.39
Add New Post /wp-admin/post-new.php1,536 ▲1723.26 ▲0.26670.18 ▼1.0355.29 ▼4.40
Media Library /wp-admin/upload.php1,388 ▲34.11 ▼0.07108.20 ▲8.8246.30 ▲3.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/reveal-ids-for-wp-admin-25/reveal-ids-for-wp-admin-25.php on line 46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/reveal-ids-for-wp-admin-25/reveal-ids-for-wp-admin-25.php:263
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reveal-ids-for-wp-admin-25/authorplugins.inc.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (18 tag instead of maximum 10)
The official readme.txt is a good inspiration

reveal-ids-for-wp-admin-25/reveal-ids-for-wp-admin-25.php 92% from 13 tests

The primary PHP file in "Reveal IDs" version 1.6.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 279 characters long)

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
Everything looks great! No dangerous files found in this plugin1,484 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File135088141,262
PHP359141132
CSS113075
JavaScript10015

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin