79% search-report

Code Review | Search Report

WordPress plugin Search Report scored79%from 54 tests.

About plugin

  • Plugin page: search-report
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-5.3.2
  • WordPress version: 6.3.1
  • First release: May 22, 2020
  • Latest release: May 22, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: pluginfences (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /324 total downloads

Benchmarks

Plugin footprint 65% 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.03MB] [CPU: ▼8.39ms] Passed 4 tests

Analyzing server-side resources used by Search Report
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.87 ▼0.13
Dashboard /wp-admin3.34 ▼0.0159.25 ▼5.36
Posts /wp-admin/edit.php3.45 ▲0.1047.52 ▼3.85
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.78 ▼22.19
Media Library /wp-admin/upload.php3.26 ▲0.0336.80 ▼2.17

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables
wp_pf_search_history_report
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Search Report
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲5914.25 ▼0.432.05 ▲0.2944.55 ▼1.20
Dashboard /wp-admin2,218 ▲385.55 ▼0.1489.89 ▼1.2836.87 ▼5.93
Posts /wp-admin/edit.php2,120 ▲202.05 ▲0.0835.15 ▼2.7136.27 ▲2.66
Add New Post /wp-admin/post-new.php1,568 ▲1423.30 ▲5.12681.30 ▼27.5269.90 ▲12.01
Media Library /wp-admin/upload.php1,420 ▲204.20 ▲0.0199.59 ▼20.7843.19 ▼4.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_pf_search_history_report
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

search-report/index.php 77% from 13 tests

Analyzing the main PHP file in "Search Report" version 1.0.0
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("search-report.php" instead of "index.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.6.0")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin272 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP43756198
JavaScript3035660
CSS12014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods850.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin