74% log-searches

Code Review | Search Log

WordPress plugin Search Log scored74%from 54 tests.

About plugin

  • Plugin page: log-searches
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.1
  • WordPress version: 6.3.1
  • First release: May 10, 2016
  • Latest release: Nov 17, 2016
  • Number of updates: 3
  • Update frequency: every 63.7 days
  • Top authors: thrica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,119 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Search Log
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.55 ▼6.20
Dashboard /wp-admin3.34 ▲0.0444.83 ▼5.01
Posts /wp-admin/edit.php3.39 ▲0.0347.29 ▼1.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.86 ▼9.40
Media Library /wp-admin/upload.php3.26 ▲0.0334.05 ▲0.47

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Search Log
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.26 ▼1.381.71 ▼0.1042.43 ▼0.45
Dashboard /wp-admin2,238 ▲505.86 ▲0.96104.47 ▼14.1740.68 ▼5.37
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0240.36 ▲5.4737.06 ▲0.57
Add New Post /wp-admin/post-new.php1,519 ▲523.18 ▼0.26663.66 ▲17.0255.11 ▼4.38
Media Library /wp-admin/upload.php1,388 ▼34.19 ▲0.0095.68 ▼1.6541.34 ▼2.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_searchlog
  • The uninstall procedure has failed, leaving 7 options in the database
    • slog_db_version
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/log-searches/search-log.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: search

log-searches/search-log.php 92% from 13 tests

The entry point to "Search Log" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("log-searches.php" instead of "search-log.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected275 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12526119
JavaScript1143116
CSS12040

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
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
223 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
flags_16/si.png0.46KB0.38KB▼ 16.03%
flags_16/sg.png0.40KB0.41KB0.00%
flags_16/np.png0.62KB0.52KB▼ 15.93%
flags_16/lr.png0.45KB0.40KB▼ 10.07%
flags_16/is.png0.48KB0.39KB▼ 20.04%