84% search-index-page-content

Code Review | Search & Index Page Content

WordPress plugin Search & Index Page Content scored84%from 54 tests.

About plugin

  • Plugin page: search-index-page...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Jan 22, 2014
  • Latest release: Dec 13, 2014
  • Number of updates: 16
  • Update frequency: every 20.3 days
  • Top authors: adaldesign (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /3,521 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.74ms] Passed 4 tests

Server-side resources used by Search & Index Page Content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.18 ▼11.07
Dashboard /wp-admin3.35 ▼0.0044.63 ▼19.60
Posts /wp-admin/edit.php3.40 ▲0.0450.29 ▲3.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.24 ▼12.59
Media Library /wp-admin/upload.php3.27 ▲0.0435.66 ▲0.30

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_sipc_links_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Search & Index Page Content
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.29 ▼1.081.93 ▲0.2541.04 ▲2.15
Dashboard /wp-admin2,209 ▲245.83 ▲0.7595.49 ▼5.6642.12 ▼1.34
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0240.20 ▲3.4436.37 ▲2.79
Add New Post /wp-admin/post-new.php1,533 ▼923.30 ▲5.04657.20 ▲45.6757.10 ▲5.61
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0996.21 ▼3.9745.50 ▲2.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_sipc_links_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/search-index-page-content/search-index-page-content.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: text, scroll, content, link, cms...

search-index-page-content/search-index-page-content.php 92% from 13 tests

The main PHP script in "Search & Index Page Content" version 1.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 290 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected263 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15185144
PO File23444119

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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
PNG images were not found in this plugin