84% content-audit

Code Review | Content Audit

WordPress plugin Content Audit scored84%from 54 tests.

About plugin

  • Plugin page: content-audit
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.2
  • WordPress version: 6.3.1
  • First release: May 30, 2010
  • Latest release: Jul 29, 2019
  • Number of updates: 75
  • Update frequency: every 44.6 days
  • Top authors: sillybean (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /14,209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.36MB] [CPU: ▼2.62ms] Passed 4 tests

Analyzing server-side resources used by Content Audit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3445.21 ▲4.54
Dashboard /wp-admin3.65 ▲0.3548.97 ▼12.35
Posts /wp-admin/edit.php3.77 ▲0.4151.07 ▲3.06
Add New Post /wp-admin/post-new.php6.29 ▲0.4087.00 ▼4.96
Media Library /wp-admin/upload.php3.57 ▲0.3437.66 ▲3.78
Content Audit Attributes /wp-admin/edit-tags.php?taxonomy=content_audit&post_type=page3.5839.79
Content Audit Overview /wp-admin/index.php?page=content-audit3.5637.42
Content Audit /wp-admin/options-general.php?page=content-audit3.5538.17

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
content_audit_children
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
content_audit

Browser metrics Passed 4 tests

Content Audit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10614.80 ▲0.421.84 ▲0.0138.49 ▼6.34
Dashboard /wp-admin2,258 ▲665.85 ▲0.89112.29 ▼7.8243.72 ▼1.36
Posts /wp-admin/edit.php2,144 ▲552.01 ▼0.0340.45 ▲1.9934.41 ▼2.29
Add New Post /wp-admin/post-new.php1,542 ▲923.55 ▲0.31692.40 ▲10.1336.88 ▼19.15
Media Library /wp-admin/upload.php1,403 ▲124.31 ▼0.1496.48 ▼6.9941.02 ▼2.82
Content Audit Attributes /wp-admin/edit-tags.php?taxonomy=content_audit&post_type=page1,5682.1427.0832.05
Content Audit Overview /wp-admin/index.php?page=content-audit8672.0328.3426.98
Content Audit /wp-admin/options-general.php?page=content-audit1,1772.2428.0927.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • content_audit_children
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-audit/inc/admin-bar.php:83
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/content-audit/inc/dashboard-overview.php:132
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-audit/inc/bulk-quick-edit.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-audit/inc/taxonomy.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/content-audit/inc/bulk-actions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/content-audit/inc/front-end.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-audit/inc/custom-fields.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-audit/inc/dashboard-widget.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/content-audit/inc/cron.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-audit/inc/admin-bar.php:83

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #2, #3, #4, #5, #6, #7, #8 in content-audit/assets to your readme.txt
You can take inspiration from this readme.txt

content-audit/content-audit.php Passed 13 tests

The primary PHP file in "Content Audit" version 2.0 is used by WordPress to initiate all plugin functionality
100 characters long description:
Lets you create a content inventory and notify the responsible parties about their outdated content.

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 plugin2,194 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP122711501,527
CSS233147432
Markdown1240144
JavaScript3192891

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions57
▷ Named functions57100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/jquery-ui-icons_21759b.png5.23KB4.11KB▼ 21.49%
images/jquery-ui-icons_333333.png4.27KB4.11KB▼ 3.78%
images/jquery-ui-icons_cc0000.png4.27KB4.11KB▼ 3.78%
images/jquery-ui-icons_999999.png4.27KB4.11KB▼ 3.78%