84% search-my-theme

Code Review | Search My Theme

WordPress plugin Search My Theme scored84%from 54 tests.

About plugin

  • Plugin page: search-my-theme
  • Plugin version: 3.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.6
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: Nov 26, 2020
  • Number of updates: 12
  • Update frequency: every 228.8 days
  • Top authors: MMDeveloper (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /3,931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.11ms] Passed 4 tests

Server-side resources used by Search My Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1652.44 ▲13.99
Dashboard /wp-admin3.47 ▲0.1749.21 ▼0.42
Posts /wp-admin/edit.php3.58 ▲0.2352.36 ▼2.00
Add New Post /wp-admin/post-new.php6.05 ▲0.16100.52 ▼6.69
Media Library /wp-admin/upload.php3.39 ▲0.1638.88 ▲4.66

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Search My Theme
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.28 ▼0.302.17 ▲0.3739.75 ▼1.38
Dashboard /wp-admin2,211 ▲315.61 ▼0.0291.65 ▲0.6042.68 ▼6.24
Posts /wp-admin/edit.php2,116 ▲162.00 ▲0.0143.00 ▲7.4437.61 ▼1.28
Add New Post /wp-admin/post-new.php1,539 ▲1123.27 ▲0.41675.50 ▼5.6754.60 ▲4.84
Media Library /wp-admin/upload.php1,419 ▲224.19 ▼0.1598.93 ▼7.9144.74 ▼1.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-my-theme/search-my-theme.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

search-my-theme/search-my-theme.php Passed 13 tests

The main PHP file in "Search My Theme" ver. 3.2.1 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
A wordpress plugin that lets you search for text within your templates.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected902 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP211486902

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity185.00
▷ Minimum class complexity185.00
▷ Maximum class complexity185.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/edit.png1.69KB0.59KB▼ 65.22%
images/trash.png1.52KB0.70KB▼ 53.85%
images/rate-me.png2.62KB1.53KB▼ 41.67%