78% powearch

Code Review | Powearch

WordPress plugin Powearch scored 78% from 54 tests.

About plugin

  • Plugin page: powearch
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.0
  • WordPress version: 5.8.1
  • First release: Jul 9, 2015
  • Latest release: Jul 12, 2015
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: ishihara takashi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 498 total downloads

Benchmarks

Plugin footprint 83% 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.06MB] [CPU: ▼138.34ms] Passed 4 tests

A check of server-side resources used by Powearch
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0334.56 ▼4.08
Dashboard /wp-admin3.19 ▲0.1457.23 ▲14.65
Posts /wp-admin/edit.php3.24 ▲0.1352.58 ▲9.57
Add New Post /wp-admin/post-new.php5.47 ▲0.0399.69 ▼551.56
Media Library /wp-admin/upload.php3.05 ▲0.0527.96 ▼7.29
Powearch /wp-admin/options-general.php?page=powearch_setting3.0536.52

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options
powearch_basics

Browser metrics Passed 4 tests

Checking browser requirements for Powearch
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,925 ▲35317.66 ▲1.788.66 ▼3.1649.51 ▲1.00
Dashboard /wp-admin3,203 ▲2698.07 ▲2.17167.54 ▲22.27121.85 ▲7.55
Posts /wp-admin/edit.php3,001 ▲2624.47 ▲1.6586.15 ▲20.10105.52 ▲10.77
Add New Post /wp-admin/post-new.php1,695 ▲2318.73 ▼0.30362.65 ▼31.30114.17 ▲3.83
Media Library /wp-admin/upload.php1,850 ▲434.93 ▼0.09116.69 ▼42.36130.55 ▲7.93
Powearch /wp-admin/options-general.php?page=powearch_setting1,6284.5697.0995.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • powearch_basics

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'settingApi' not found in wp-content/plugins/powearch/inc/powearchAdmin.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=powearch_setting
    • > Network (severe)
    wp-content/plugins/assets/js/mousetrap.min.js - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #2 (Setting page screen) image missing
You can take inspiration from this readme.txt

powearch/powearch.php Passed 13 tests

The entry point to "Powearch" version 1.0.0 is a PHP file that has certain tags in its header comment area
86 characters long description:
Is a powerful search plugin for WordPress users.Start by pressing SHIFT key two times.

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
Everything looks great! No dangerous files found in this plugin3,725 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript227232,556
PHP3125277799
CSS12911248
PO File23838108
Markdown17014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity44.67
▷ Minimum class complexity4.00
▷ Maximum class complexity77.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods53
▷ Static methods47.55%
▷ Public methods5094.34%
▷ Protected methods35.66%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/enter_key.png0.23KB0.28KB0.00%