90% find-function

Code Review | Find Function/Class

WordPress plugin Find Function/Class scored90%from 54 tests.

About plugin

  • Plugin page: find-function
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Apr 23, 2015
  • Latest release: Feb 14, 2018
  • Number of updates: 6
  • Update frequency: every 171.3 days
  • Top authors: Mte90 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.59ms] Passed 4 tests

An overview of server-side resources used by Find Function/Class
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.18 ▲9.36
Dashboard /wp-admin3.33 ▲0.0343.71 ▼6.93
Posts /wp-admin/edit.php3.38 ▲0.0346.08 ▲0.68
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.29 ▼2.63
Media Library /wp-admin/upload.php3.25 ▲0.0333.63 ▼1.49

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Find Function/Class
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲15213.65 ▼0.786.05 ▲4.4137.79 ▼3.40
Dashboard /wp-admin2,239 ▲545.85 ▲0.92105.71 ▲4.8440.89 ▼1.14
Posts /wp-admin/edit.php2,134 ▲452.06 ▲0.0642.00 ▲6.1135.11 ▲0.51
Add New Post /wp-admin/post-new.php1,547 ▲2823.45 ▲0.21672.73 ▲83.2655.74 ▼2.60
Media Library /wp-admin/upload.php1,433 ▲424.23 ▼0.0299.23 ▲1.2643.33 ▼2.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: development, debug, find

find-function/find-function.php Passed 13 tests

The main PHP script in "Find Function/Class" version 1.0.1 is automatically included on every request by WordPress
83 characters long description:
Found the function or class on the page (file and row inline) that you are visiting

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
No dangerous file extensions were detected115 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2126996
JavaScript10519

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin