84% anonymous-admin-links

Code Review | Anonymous Admin Links

WordPress plugin Anonymous Admin Links scored84%from 54 tests.

About plugin

  • Plugin page: anonymous-admin-l...
  • Plugin version: 1.03
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2013
  • Latest release: Mar 29, 2013
  • Number of updates: 9
  • Update frequency: every 2.3 days
  • Top authors: evansolomon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,060 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Anonymous Admin Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.82 ▼6.14
Dashboard /wp-admin3.31 ▲0.0044.63 ▼5.97
Posts /wp-admin/edit.php3.36 ▲0.0047.64 ▲0.02
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.16 ▼10.23
Media Library /wp-admin/upload.php3.24 ▲0.0033.04 ▼0.60

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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Anonymous Admin Links: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.63 ▼0.751.69 ▼0.0743.72 ▲0.24
Dashboard /wp-admin2,208 ▲205.04 ▲0.16107.16 ▼11.2237.66 ▼8.66
Posts /wp-admin/edit.php2,091 ▲22.04 ▼0.1440.91 ▲6.8337.26 ▲0.14
Add New Post /wp-admin/post-new.php1,516 ▲217.61 ▲0.08671.80 ▲10.5661.31 ▼6.86
Media Library /wp-admin/upload.php1,390 ▲24.20 ▼0.0194.83 ▼6.1738.49 ▼3.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at 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/anonymous-admin-links/anonymous-admin-links.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
3 plugin tags: link, referrer, wp-admin

anonymous-admin-links/anonymous-admin-links.php Passed 13 tests

The principal PHP file in "Anonymous Admin Links" v. 1.03 is loaded by WordPress automatically on each request
59 characters long description:
Hide the referrer for external links in the WordPress admin

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
Success! There were no dangerous files found in this plugin57 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16133
CoffeeScript19617
PHP1275
Markdown1102

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.00
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%
Functions1
▷ Named functions1100.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