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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.55 ▼6.20 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.83 ▼5.01 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.29 ▼1.16 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.86 ▼9.40 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.26 ▼1.38 | 1.71 ▼0.10 | 42.43 ▼0.45 |
Dashboard /wp-admin | 2,238 ▲50 | 5.86 ▲0.96 | 104.47 ▼14.17 | 40.68 ▼5.37 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▲0.02 | 40.36 ▲5.47 | 37.06 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 23.18 ▼0.26 | 663.66 ▲17.02 | 55.11 ▼4.38 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▲0.00 | 95.68 ▼1.65 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 26 | 119 |
JavaScript | 1 | 14 | 3 | 116 |
CSS | 1 | 2 | 0 | 40 |
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 code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags_16/si.png | 0.46KB | 0.38KB | ▼ 16.03% |
flags_16/sg.png | 0.40KB | 0.41KB | 0.00% |
flags_16/np.png | 0.62KB | 0.52KB | ▼ 15.93% |
flags_16/lr.png | 0.45KB | 0.40KB | ▼ 10.07% |
flags_16/is.png | 0.48KB | 0.39KB | ▼ 20.04% |