89% resource-not-found-placeholder

Code Review | Resource Not Found Placeholder | Prevent redirections due to not foud resources

WordPress plugin Resource Not Found Placeholder | Prevent redirections due to not foud resources scored89%from 54 tests.

About plugin

  • Plugin page: resource-not-foun...
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 9, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 16
  • Update frequency: every 11.3 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /293 total downloads

Benchmarks

Plugin footprint 82% 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.01MB] [CPU: ▼2.46ms] Passed 4 tests

Analyzing server-side resources used by Resource Not Found Placeholder | Prevent redirections due to not foud resources
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.03 ▲0.01
Dashboard /wp-admin3.32 ▲0.0144.75 ▼2.99
Posts /wp-admin/edit.php3.36 ▲0.0147.32 ▼0.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.40 ▼6.25
Media Library /wp-admin/upload.php3.24 ▲0.0134.25 ▲1.72

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • Illegal file modification detected: 1 file (3.19KB) outside of "wp-content/plugins/resource-not-found-placeholder/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/0-resource-not-found-placeholder.php
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Resource Not Found Placeholder | Prevent redirections due to not foud resources
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.071.65 ▲0.0337.60 ▼0.97
Dashboard /wp-admin2,206 ▲204.84 ▼1.06107.53 ▼5.3142.74 ▲1.75
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.1240.53 ▲6.8636.01 ▼0.57
Add New Post /wp-admin/post-new.php1,542 ▲918.50 ▼4.67644.88 ▼26.3050.69 ▼1.06
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0695.52 ▲1.0841.99 ▼3.43

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: performance, 404, redirections

resource-not-found-placeholder/resource-not-found-placeholder.php 92% from 13 tests

The main PHP script in "Resource Not Found Placeholder | Prevent redirections due to not foud resources" version 0.0.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin213 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP61745213

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants4
▷ Global constants4100.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
No PNG files were detected