84% nice-search-slug

Code Review | Nice Search Slug

WordPress plugin Nice Search Slug scored84%from 54 tests.

About plugin

  • Plugin page: nice-search-slug
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 22, 2013
  • Latest release: Dec 22, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: rosdyana.kusuma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /927 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.23ms] Passed 4 tests

An overview of server-side resources used by Nice Search Slug
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.55 ▼1.31
Dashboard /wp-admin3.32 ▼0.0245.71 ▼16.22
Posts /wp-admin/edit.php3.37 ▲0.0252.87 ▲2.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.03 ▼21.26
Media Library /wp-admin/upload.php3.25 ▲0.0238.40 ▲1.88
Nice Search Setting /wp-admin/options-general.php?page=nice-search-slug3.2131.51

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Nice Search Slug
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.25 ▼1.335.14 ▲3.3042.27 ▲1.34
Dashboard /wp-admin2,207 ▲195.85 ▲0.94106.84 ▲2.6342.03 ▼0.49
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0338.46 ▼4.4135.26 ▼7.98
Add New Post /wp-admin/post-new.php1,535 ▲223.33 ▲0.42586.24 ▼106.1948.75 ▼7.34
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.0797.94 ▼7.0443.09 ▼2.88
Nice Search Setting /wp-admin/options-general.php?page=nice-search-slug8232.0123.8327.32

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/nice-search-slug/plus-to-minus.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Screen shot for setting page of the plugin.)
You can take inspiration from this readme.txt

nice-search-slug/plus-to-minus.php 92% from 13 tests

"Nice Search Slug" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nice-search-slug.php" instead of "plus-to-minus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin135 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2181968
PO File2121667

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/email.png1.65KB0.54KB▼ 67.02%
images/twitter.png3.58KB0.79KB▼ 77.98%
images/gplus.png1.93KB0.82KB▼ 57.71%
1.png39.85KB18.56KB▼ 53.43%