78% not-found-tracker

Code Review | Not Found Tracker

WordPress plugin Not Found Tracker scored 78% from 54 tests.

About plugin

  • Plugin page: not-found-tracker
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-3.9
  • WordPress version: 5.8.1
  • First release: Jul 11, 2014
  • Latest release: Jul 11, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: masdimsd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼140.23ms] Passed 4 tests

A check of server-side resources used by Not Found Tracker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.03 ▲0.3135.46 ▲13.14
Dashboard /wp-admin3.16 ▲0.1039.52 ▼5.24
Posts /wp-admin/edit.php3.27 ▲0.1645.42 ▲4.83
Add New Post /wp-admin/post-new.php5.52 ▲0.0888.26 ▼558.57
Media Library /wp-admin/upload.php3.10 ▲0.1031.97 ▼1.94
Not Found Access List /wp-admin/tools.php?page=nftracker3.0531.18

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: 3 new tables, no new options
New tables
wp_404_relation
wp_404_ip
wp_404_link

Browser metrics Passed 4 tests

A check of browser resources used by Not Found Tracker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,724 ▲11815.88 ▼0.078.58 ▼0.7848.34 ▲5.12
Dashboard /wp-admin2,972 ▲425.87 ▼0.30137.00 ▼24.60107.04 ▼13.82
Posts /wp-admin/edit.php2,741 ▲22.72 ▲0.0168.84 ▲5.2196.59 ▲2.71
Add New Post /wp-admin/post-new.php1,675 ▼818.84 ▲0.09365.75 ▼9.43109.43 ▲5.50
Media Library /wp-admin/upload.php1,812 ▲55.00 ▼0.02154.95 ▲1.72125.35 ▲11.20
Not Found Access List /wp-admin/tools.php?page=nftracker1,2482.0856.1455.01

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
The following items require your attention
  • Zombie tables were found after uninstall: 3 tables
    • wp_404_ip
    • wp_404_link
    • wp_404_relation

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=nftracker
    • > Notice in wp-admin/includes/class-wp-list-table.php+1174
    Array to string conversion

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/not-found-tracker/Tracker_List_Table.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/not-found-tracker/Tracker_List_Table.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/not-found-tracker/not-found-tracker.php on line 41
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/not-found-tracker/Ip_List_Table.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/not-found-tracker/not-found-tracker.php on line 41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/not-found-tracker/uninstall.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/not-found-tracker/Ip_List_Table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/not-found-tracker/not-found-tracker.php on line 41
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/not-found-tracker/Ip_List_Table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/not-found-tracker/Tracker_List_Table.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

not-found-tracker/not-found-tracker.php Passed 13 tests

"Not Found Tracker" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Track Not Found address on your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin484 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP57964484

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.50
▷ Minimum class complexity6.00
▷ Maximum class complexity43.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods3186.11%
▷ Protected methods00.00%
▷ Private methods513.89%
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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshoot/link-table.png21.16KB11.27KB▼ 46.73%