84% wp-authenticity-checker-wac

Code Review | WP Authenticity Checker

WordPress plugin WP Authenticity Checker scored 84% from 54 tests.

About plugin

  • Plugin page: wp-authenticity-c...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Sep 29, 2016
  • Latest release: Nov 20, 2017
  • Number of updates: 15
  • Update frequency: every 27.8 days
  • Top authors: lpkapil008 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active / 19,929 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.04ms] Passed 4 tests

An overview of server-side resources used by WP Authenticity Checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.73 ▼5.42
Dashboard /wp-admin3.36 ▲0.0645.35 ▼4.91
Posts /wp-admin/edit.php3.41 ▲0.0552.18 ▲2.28
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.27 ▼4.09
Media Library /wp-admin/upload.php3.28 ▲0.0541.66 ▲3.47

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Authenticity Checker: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.66 ▼0.931.88 ▼0.3542.49 ▼2.49
Dashboard /wp-admin2,223 ▲325.86 ▲0.9599.77 ▼13.1081.73 ▲33.14
Posts /wp-admin/edit.php2,106 ▲201.97 ▼0.0436.02 ▲2.6533.91 ▼2.68
Add New Post /wp-admin/post-new.php1,683 ▲16922.41 ▲4.87688.15 ▲22.8464.59 ▲8.69
Media Library /wp-admin/upload.php1,408 ▲204.14 ▼0.08121.37 ▲7.7851.71 ▲5.09

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-authenticity-checker-wac/wordpress_authenticity_checker.php:31
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-authenticity-checker-wac/wordpress_authenticity_checker.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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: wac, authenticity checker, scanner

wp-authenticity-checker-wac/wordpress_authenticity_checker.php 85% from 13 tests

Analyzing the main PHP file in "WP Authenticity Checker" version 1.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-authenticity-checker-wac.php" instead of "wordpress_authenticity_checker.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 227 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin263 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15929194
CSS115769

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin