89% plugin-auditor

Code Review | Plugin Auditor

WordPress plugin Plugin Auditor scored89%from 54 tests.

About plugin

  • Plugin page: plugin-auditor
  • Plugin version: 2.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: May 3, 2015
  • Latest release: Apr 22, 2019
  • Number of updates: 45
  • Update frequency: every 32.3 days
  • Top authors: wholegraindigital (80%)MatheusFD (22.22%)

Code review

54 tests

User reviews

7 reviews

Install metrics

50+ active /3,033 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.41ms] Passed 4 tests

This is a short check of server-side resources used by Plugin Auditor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.54 ▼2.18
Dashboard /wp-admin3.33 ▲0.0345.43 ▼5.18
Posts /wp-admin/edit.php3.44 ▲0.0949.99 ▲5.64
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.85 ▲2.22
Media Library /wp-admin/upload.php3.25 ▲0.0335.21 ▼0.51
Plugin Auditor /wp-admin/plugins.php?page=plugin_audit3.2337.28

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 9 new options
New tables
wp_plugin_audit
New WordPress options
db_upgraded
widget_theysaidso_widget
pa_plugins
can_compress_scripts
widget_recent-comments
widget_recent-posts
pa_active_plugins
pa_db_version
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Auditor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲11613.21 ▼0.981.56 ▼0.3938.94 ▼5.56
Dashboard /wp-admin2,254 ▲635.76 ▼0.1493.96 ▼22.0640.18 ▼5.04
Posts /wp-admin/edit.php2,140 ▲512.17 ▼0.0140.68 ▲1.9537.67 ▲4.34
Add New Post /wp-admin/post-new.php1,587 ▲7318.64 ▲1.11577.32 ▼108.7152.07 ▼2.44
Media Library /wp-admin/upload.php1,442 ▲574.21 ▲0.0697.34 ▼16.7646.18 ▼2.37
Plugin Auditor /wp-admin/plugins.php?page=plugin_audit1,0562.3728.4735.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output 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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: audit trail, audit, plugin audit, maintenance, security

plugin-auditor/plugin-audit.php 85% from 13 tests

The main file in "Plugin Auditor" v. 2.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 154 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("plugin-auditor.php" instead of "plugin-audit.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
Success! There were no dangerous files found in this plugin1,480 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4166201795
PHP214083513
CSS2324141
SVG10131

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity32.50
▷ Minimum class complexity29.00
▷ Maximum class complexity36.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods313.64%
▷ Public methods1777.27%
▷ Protected methods522.73%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png8.15KB4.13KB▼ 49.24%
banner-772x250.png19.31KB8.47KB▼ 56.12%
assets/icon-256x256.png17.68KB8.39KB▼ 52.52%