10% website-authority-checker

Code Review | Website Authority Checker

WordPress plugin Website Authority Checker scored10%from 54 tests.

About plugin

  • Plugin page: website-authority...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Sep 24, 2022
  • Number of updates: 8
  • Update frequency: every 266.1 days
  • Top authors: mianahmad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,280 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WAC_Authority_Checker::wac_wpa_install() should not be called statically

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

This is a short check of server-side resources used by Website Authority Checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0342.39 ▼4.57
Dashboard /wp-admin3.58 ▲0.0250.37 ▼4.64
Posts /wp-admin/edit.php3.70 ▲0.0255.65 ▼3.29
Add New Post /wp-admin/post-new.php6.16 ▲0.0286.92 ▼23.18
Media Library /wp-admin/upload.php3.51 ▲0.0244.49 ▲4.91

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
wac_moz_valid
db_upgraded
can_compress_scripts
wac_moz_key
wac_moz_secret
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Website Authority Checker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲18713.45 ▼0.699.55 ▲7.5640.03 ▼5.05
Dashboard /wp-admin2,209 ▲295.70 ▲0.0189.65 ▼11.0985.87 ▲39.52
Posts /wp-admin/edit.php2,093 ▼72.04 ▼0.0138.70 ▲1.3335.54 ▲1.88
Add New Post /wp-admin/post-new.php1,536 ▲1023.44 ▲5.63684.97 ▼10.7856.30 ▲3.81
Media Library /wp-admin/upload.php1,402 ▼14.21 ▼0.00101.60 ▼6.6481.51 ▲35.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 9 options
    • wac_moz_secret
    • theysaidso_admin_options
    • db_upgraded
    • wac_moz_key
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • wac_moz_valid

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/website-authority-checker/wac-boxhtml.php
    • > /wp-content/plugins/website-authority-checker/lib/checkAuthority.php
    • > /wp-content/plugins/website-authority-checker/settingPage.php
    • > /wp-content/plugins/website-authority-checker/actions.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/website-authority-checker/website-authority-checker.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: moz trust, page authority, links equity, page rank, moz rank...

website-authority-checker/website-authority-checker.php 92% from 13 tests

The main PHP script in "Website Authority Checker" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin505 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP515054397
CSS18169
JavaScript17139

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
imgs/tick.png0.44KB0.40KB▼ 9.31%
imgs/logo.png0.56KB0.50KB▼ 10.57%