84% power-search

Code Review | Power Search

WordPress plugin Power Search scored 84% from 54 tests.

About plugin

  • Plugin page: power-search
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: May 15, 2014
  • Latest release: Jun 2, 2014
  • Number of updates: 51
  • Update frequency: every 0.4 days
  • Top authors: priyank780 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,224 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.03MB] [CPU: ▼11.62ms] Passed 4 tests

A check of server-side resources used by Power Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.91 ▼8.94
Dashboard /wp-admin3.08 ▼0.2335.21 ▼21.47
Posts /wp-admin/edit.php3.39 ▲0.0347.69 ▼6.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.50 ▼9.42
Media Library /wp-admin/upload.php3.26 ▲0.0336.94 ▲4.77

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Power Search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲12913.24 ▼1.064.33 ▲2.4138.61 ▼5.61
Dashboard /wp-admin2,270 ▲854.91 ▼0.2199.40 ▼62.2738.82 ▼19.76
Posts /wp-admin/edit.php2,105 ▲161.97 ▼0.0339.01 ▼3.0336.45 ▼0.35
Add New Post /wp-admin/post-new.php1,560 ▲2718.20 ▼5.39608.48 ▼8.7480.91 ▲29.52
Media Library /wp-admin/upload.php1,407 ▲164.19 ▲0.0096.45 ▼2.4541.43 ▼2.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 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/power-search/power-search.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: search content

power-search/power-search.php Passed 13 tests

The principal PHP file in "Power Search" v. 1.3.2 is loaded by WordPress automatically on each request
69 characters long description:
A Search Engine which search content from Posts or Pages or Comments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin226 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22834226

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
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 complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin