89% sinbyte-indexer

Code Review | Sinbyte Indexer

WordPress plugin Sinbyte Indexer scored89%from 54 tests.

About plugin

  • Plugin page: sinbyte-indexer
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 24, 2021
  • Latest release: Mar 10, 2022
  • Number of updates: 18
  • Update frequency: every 5.9 days
  • Top authors: leuyvien (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /4,939 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼6.72ms] Passed 4 tests

Analyzing server-side resources used by Sinbyte Indexer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1746.08 ▼3.73
Dashboard /wp-admin3.48 ▲0.1852.89 ▼5.47
Posts /wp-admin/edit.php3.60 ▲0.2457.07 ▲6.78
Add New Post /wp-admin/post-new.php6.07 ▲0.1888.07 ▼18.23
Media Library /wp-admin/upload.php3.41 ▲0.1839.23 ▲0.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
wp-sbi
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Sinbyte Indexer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.28 ▼0.331.76 ▲0.1541.89 ▼3.44
Dashboard /wp-admin2,208 ▲285.59 ▲0.0193.17 ▼1.1441.02 ▼4.86
Posts /wp-admin/edit.php2,116 ▲161.94 ▼0.0239.77 ▲2.5635.49 ▼0.60
Add New Post /wp-admin/post-new.php1,539 ▲1323.19 ▲0.13661.95 ▼28.2657.90 ▲2.08
Media Library /wp-admin/upload.php1,419 ▲194.19 ▼0.0398.28 ▼9.3443.03 ▼2.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • wp-sbi
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

sinbyte-indexer/sinbyte-indexer.php 77% from 13 tests

"Sinbyte Indexer" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,187 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP141904331,059
PO File1272975
CSS14148
JSON1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity22.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods65
▷ Static methods2741.54%
▷ Public methods6193.85%
▷ Protected methods00.00%
▷ Private methods46.15%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants16
▷ Global constants531.25%
▷ Class constants1168.75%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected