10% asset-finder

Code Review | Asset Finder

WordPress plugin Asset Finder scored 10% from 54 tests.

About plugin

  • Plugin page: asset-finder
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 27, 2018
  • Latest release: Aug 27, 2018
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: cmjaimet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 545 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/asset-finder/asset-finder.php+38
    require_once(wp-content/plugins/asset-finder/classes/Requirements.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.93ms] Passed 4 tests

An overview of server-side resources used by Asset Finder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.53 ▼0.10
Dashboard /wp-admin3.31 ▲0.0050.68 ▼1.03
Posts /wp-admin/edit.php3.36 ▲0.0046.18 ▼6.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.21 ▼0.56
Media Library /wp-admin/upload.php3.23 ▲0.0035.78 ▲0.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Asset Finder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.42 ▲0.021.88 ▼0.0642.82 ▲0.70
Dashboard /wp-admin2,203 ▲125.89 ▼0.01109.46 ▼7.4644.62 ▲0.08
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0737.61 ▼3.8830.52 ▼3.88
Add New Post /wp-admin/post-new.php1,533 ▼023.09 ▼0.02627.74 ▼69.2758.15 ▲4.99
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0098.17 ▼5.1044.37 ▲0.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AssetFinder\\add_action() in wp-content/plugins/asset-finder/classes/DisplayWeb.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AssetFinder\\add_action() in wp-content/plugins/asset-finder/classes/AssetCollector.php:85
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AssetFinder\\add_action() in wp-content/plugins/asset-finder/classes/Settings.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Plugin Name: Please specify the plugin name on the first line ( === asset-finder === )
Please take inspiration from this readme.txt

asset-finder/asset-finder.php 92% from 13 tests

The main file in "Asset Finder" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time 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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected389 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP44279263
JavaScript367101
CSS10018
Markdown1607

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity6.00
▷ Maximum class complexity13.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods1553.57%
▷ Protected methods00.00%
▷ Private methods1346.43%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin